Dependencies: mbed FATFileSystem
main.cpp@1:6179c2d67d19, 2019-03-18 (annotated)
- Committer:
- ellisbhastroud
- Date:
- Mon Mar 18 11:02:06 2019 +0000
- Revision:
- 1:6179c2d67d19
- Parent:
- 0:c6ceddb241df
- Child:
- 2:81cfa8310f55
Menu Added
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ellisbhastroud | 0:c6ceddb241df | 1 | /* |
ellisbhastroud | 0:c6ceddb241df | 2 | ELEC2645 Embedded Systems Project |
ellisbhastroud | 0:c6ceddb241df | 3 | School of Electronic & Electrical Engineering |
ellisbhastroud | 0:c6ceddb241df | 4 | University of Leeds |
ellisbhastroud | 0:c6ceddb241df | 5 | Name: Ellis Blackford Stroud |
ellisbhastroud | 0:c6ceddb241df | 6 | Username: el17ebs |
ellisbhastroud | 0:c6ceddb241df | 7 | Student ID Number: 201155309 |
ellisbhastroud | 1:6179c2d67d19 | 8 | Date: 09/05/19 |
ellisbhastroud | 0:c6ceddb241df | 9 | */ |
ellisbhastroud | 0:c6ceddb241df | 10 | #include "mbed.h" |
ellisbhastroud | 1:6179c2d67d19 | 11 | #include "Gamepad.h" |
ellisbhastroud | 1:6179c2d67d19 | 12 | #include "N5110.h" |
ellisbhastroud | 1:6179c2d67d19 | 13 | #include "Menu.h" |
ellisbhastroud | 0:c6ceddb241df | 14 | |
ellisbhastroud | 1:6179c2d67d19 | 15 | // objects |
ellisbhastroud | 1:6179c2d67d19 | 16 | N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); |
ellisbhastroud | 1:6179c2d67d19 | 17 | Gamepad pad; |
ellisbhastroud | 0:c6ceddb241df | 18 | |
ellisbhastroud | 0:c6ceddb241df | 19 | int main() |
ellisbhastroud | 0:c6ceddb241df | 20 | { |
ellisbhastroud | 1:6179c2d67d19 | 21 | init(); |
ellisbhastroud | 1:6179c2d67d19 | 22 | print_welcome(); |
ellisbhastroud | 1:6179c2d67d19 | 23 | wait(3); |
ellisbhastroud | 1:6179c2d67d19 | 24 | print_menu(); |
ellisbhastroud | 1:6179c2d67d19 | 25 | } |
ellisbhastroud | 1:6179c2d67d19 | 26 | |
ellisbhastroud | 1:6179c2d67d19 | 27 | void init() |
ellisbhastroud | 1:6179c2d67d19 | 28 | { |
ellisbhastroud | 1:6179c2d67d19 | 29 | lcd.init(); |
ellisbhastroud | 1:6179c2d67d19 | 30 | pad.init(); |
ellisbhastroud | 1:6179c2d67d19 | 31 | } |