![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Adam Baker 201166301
Dependencies: mbed Gamepad N5110
Diff: main.cpp
- Revision:
- 0:0dcf08db8d61
- Child:
- 1:a3cce487dffe
diff -r 000000000000 -r 0dcf08db8d61 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 18 09:34:47 2019 +0000 @@ -0,0 +1,26 @@ +#include "mbed.h" +#include "Gamepad.h" +#include "N5110.h" + +N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11); +Gamepad pad; + +int main() { + + int fps = 8; + + pad.init(); + lcd.init(); + + while(1) { + + lcd.clear(); + + lcd.drawLine(0,40,84,40,1); + + lcd.refresh(); + + wait(1.0f/fps); + + } +} \ No newline at end of file