
single player mbedKart
(notes)
Diff: universal.h
- Revision:
- 21:f8f6c1f5743c
- Parent:
- 18:6c93ec600402
- Child:
- 23:b0fe1c1046dc
--- a/universal.h Tue Dec 11 02:09:08 2018 +0000 +++ b/universal.h Tue Dec 11 02:32:50 2018 +0000 @@ -1,9 +1,14 @@ +#ifndef EXAMPLE_H +#define EXAMPLE_H +#define PANID 0xD161 +#define CHANNEL 0x1A + // Define devices Motor left(p22, p16, p15); // pwm, fwd, rev Motor right(p23, p19, p20); // pwm, fwd, rev BusOut myled(LED1,LED2,LED3,LED4); RGBLed myRGBled(p26, p25, p24); // red, green, blue -rgbSensor rgbsensor(p28, p27); +rgbSensor rgbsensor(p28, p27, p30); Serial blue(p13, p14); // serial tx, serial rx enum speed_state { accelerating, braking, coasting }; @@ -21,4 +26,5 @@ float coast_rate = 0.02; int cstate; speed_state sstate = coasting; -bool collide = false; \ No newline at end of file +bool collide = false; +#endif \ No newline at end of file