This project is a DIY mbed version of your favorite childhood game
Dependencies: mbed 4DGL-uLCD-SE LCD_fonts SDFileSystem MMA8452
CursorController.h@0:bce994168592, 2019-04-14 (annotated)
- Committer:
- aklaussen
- Date:
- Sun Apr 14 01:39:35 2019 +0000
- Revision:
- 0:bce994168592
publish working code;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
aklaussen | 0:bce994168592 | 1 | #include "mbed.h" |
aklaussen | 0:bce994168592 | 2 | class CursorController { |
aklaussen | 0:bce994168592 | 3 | public: |
aklaussen | 0:bce994168592 | 4 | AnalogIn XPot; |
aklaussen | 0:bce994168592 | 5 | AnalogIn YPot; |
aklaussen | 0:bce994168592 | 6 | CursorController():XPot(p19), YPot(p20){}; |
aklaussen | 0:bce994168592 | 7 | int getX(); |
aklaussen | 0:bce994168592 | 8 | int getY(); |
aklaussen | 0:bce994168592 | 9 | }; |