![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
test 1 doc
Diff: main.cpp
- Revision:
- 2:f22cb01c43bc
- Parent:
- 1:7fe71d8e48da
- Child:
- 3:e4e1cbf750b6
--- a/main.cpp Sun Apr 05 15:25:17 2020 +0000 +++ b/main.cpp Fri Apr 10 19:07:13 2020 +0000 @@ -14,14 +14,28 @@ #include "mbed.h" #include "Gamepad.h" #include "N5110.h" +#include "Bitmap.h" // objects Gamepad pad; N5110 lcd; -int main() -{ +void init(); + +int main(){ + + init(); + lcd.setContrast(0.5); + while(1){ + lcd.clear(); + lcd.refresh(); + } } +void init(){ + lcd.init(); + pad.init(); + } +