s
Dependencies: LM75B C12832_lcd LCD_fonts
Revision 1:133129bd3d45, committed 2019-12-06
- Comitter:
- Lukas_Adlboller
- Date:
- Fri Dec 06 16:47:34 2019 +0000
- Parent:
- 0:e4434d058310
- Child:
- 2:b4a812174f7e
- Commit message:
- Big Big Project
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Nov 19 09:07:36 2019 +0000 +++ b/main.cpp Fri Dec 06 16:47:34 2019 +0000 @@ -5,13 +5,18 @@ DigitalOut startLED(LED3); DigitalOut rgbLED[] = {DigitalOut(p23), DigitalOut(p24), DigitalOut(p25)}; + InterruptIn fireInterrupt(p14); + Timeout startChecker; + LM75B tempSensor(p28, p27); MMA7660 MMA(p28, p27); C12832_LCD lcdDisplay; + Thread temp_thread; Thread gyro_thread; + Mutex lcdMutex; bool boardStarted = false; @@ -46,8 +51,8 @@ int x = (x + MMA.x() * 32.0)/2.0; int y = (y -(MMA.y() * 16.0))/2.0; lcdMutex.lock(); - lcdDisplay.fillcircle(x+83, y+15, 3, 1); //draw bubble - lcdDisplay.circle(83, 15, 8, 1); + lcdDisplay.locate(0, 20); + lcdDisplay.printf("X: %d; Y: %d", x, y); lcdMutex.unlock(); wait(0.1); //time delay