Early commits of my project
Dependencies: mbed Gamepad N5110
main.h@0:9e5f9e1c8ef9, 2019-03-11 (annotated)
- Committer:
- el17arm
- Date:
- Mon Mar 11 18:28:46 2019 +0000
- Revision:
- 0:9e5f9e1c8ef9
- Child:
- 1:c80162894831
Initial setup; -screen and joystick libraries added; -initialise function created, screen turned on, leds set to off state
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el17arm | 0:9e5f9e1c8ef9 | 1 | |
el17arm | 0:9e5f9e1c8ef9 | 2 | #ifndef MAIN_H |
el17arm | 0:9e5f9e1c8ef9 | 3 | #define MAIN_H |
el17arm | 0:9e5f9e1c8ef9 | 4 | |
el17arm | 0:9e5f9e1c8ef9 | 5 | #include "mbed.h" |
el17arm | 0:9e5f9e1c8ef9 | 6 | #include "N5110.h" |
el17arm | 0:9e5f9e1c8ef9 | 7 | #include "Joystick.h" |
el17arm | 0:9e5f9e1c8ef9 | 8 | |
el17arm | 0:9e5f9e1c8ef9 | 9 | //objects defined in main file, removes need to define multiple times |
el17arm | 0:9e5f9e1c8ef9 | 10 | |
el17arm | 0:9e5f9e1c8ef9 | 11 | extern N5110 lcd; |
el17arm | 0:9e5f9e1c8ef9 | 12 | extern Joystick joystick; |
el17arm | 0:9e5f9e1c8ef9 | 13 | extern AnalogIn contrast; |
el17arm | 0:9e5f9e1c8ef9 | 14 | extern DigitalIn joy_button; |
el17arm | 0:9e5f9e1c8ef9 | 15 | |
el17arm | 0:9e5f9e1c8ef9 | 16 | //function prototypes |
el17arm | 0:9e5f9e1c8ef9 | 17 | |
el17arm | 0:9e5f9e1c8ef9 | 18 | void init(); |
el17arm | 0:9e5f9e1c8ef9 | 19 | |
el17arm | 0:9e5f9e1c8ef9 | 20 | #endif |