Starting revamp of Furio&Cornelia
Revert "do not initialize LEDs"
This reverts commit a4be313e96
.
pull/1/head
parent
788684ef0a
commit
33466b9a34
|
@ -13,6 +13,10 @@
|
||||||
the new setup is the one commented, leds have to be written
|
the new setup is the one commented, leds have to be written
|
||||||
in the 32U4 code*/
|
in the 32U4 code*/
|
||||||
|
|
||||||
|
#define LED_R 20
|
||||||
|
#define LED_Y 17
|
||||||
|
#define LED_G 13
|
||||||
|
|
||||||
#define BUZZER 6
|
#define BUZZER 6
|
||||||
#define SWITCH_SX 39
|
#define SWITCH_SX 39
|
||||||
#define SWITCH_DX 38
|
#define SWITCH_DX 38
|
||||||
|
|
|
@ -2,10 +2,13 @@
|
||||||
#include "sensors/sensors.h"
|
#include "sensors/sensors.h"
|
||||||
|
|
||||||
void initSensors(){
|
void initSensors(){
|
||||||
pinMode(SWITCH_DX, INPUT);
|
pinMode(SWITCH_1, INPUT);
|
||||||
pinMode(SWITCH_SX, INPUT);
|
pinMode(SWITCH_2, INPUT);
|
||||||
pinMode(SWITCH_ID, INPUT);
|
|
||||||
|
pinMode(LED_R, OUTPUT);
|
||||||
|
pinMode(LED_Y, OUTPUT);
|
||||||
|
pinMode(LED_G, OUTPUT);
|
||||||
|
|
||||||
drive = new DriveController(new Motor(12, 11, 4, 55), new Motor(25, 24, 5, 135), new Motor(27, 26, 2, 225), new Motor(29, 28, 3, 305));
|
drive = new DriveController(new Motor(12, 11, 4, 55), new Motor(25, 24, 5, 135), new Motor(27, 26, 2, 225), new Motor(29, 28, 3, 305));
|
||||||
// tone(BUZZER, 270, 250);
|
// tone(BUZZER, 270, 250);
|
||||||
// delay(350);
|
// delay(350);
|
||||||
|
|
Loading…
Reference in New Issue