Early commits of my project
Dependencies: mbed Gamepad N5110
Diff: main.cpp
- Revision:
- 0:9e5f9e1c8ef9
- Child:
- 1:c80162894831
diff -r 000000000000 -r 9e5f9e1c8ef9 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 11 18:28:46 2019 +0000 @@ -0,0 +1,25 @@ +#include "main.h" +#include "N5110.h" +#include "Joystick.h" + +N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); +Joystick joystick(PTB10,PTB11,PTC16); +AnalogIn contrast(PTB2); +DigitalIn joy_button(PTC16); +BusOut front_leds(PTA1,PTA2,PTC2,PTC3,PTC4, PTD3); + +int main() +{ + init(); + + while (1) { + + } + +} + +void init() +{ + lcd.init(); + front_leds = 0b111111; +} \ No newline at end of file