Minigame based on Nucleo F103RBSTM32F103RBT6 microcontroller with mBed Application shield
Dependencies: C12832 LM75B MMA7660 mbed
Fork of apps-shield-pots by
- One player - Apple to collect - Monster to avoid - 3 life - 5 ammo - Dynamic difficulty
Playability : Move with accelerometer Shoot with joystick Notifications with RBG LED/Speaker
4 applicatives view - Menu - Ingame - Pause (press fire 2 seconds) - Game over
Have fun
main.cpp
- Committer:
- chris
- Date:
- 2014-08-01
- Revision:
- 4:f0eb984c583d
- Parent:
- 3:100dbea70564
- Child:
- 5:f11bddc1baf0
File content as of revision 4:f0eb984c583d:
#include "mbed.h" #include "C12832.h" C12832 lcd(D11, D13, D12, D7, D10); AnalogIn pot1 (A0); AnalogIn pot2 (A1); int main() { while(1) { lcd.cls(); lcd.locate(0,3); lcd.printf("Pot 1 = %.2f", (float)pot1); lcd.locate(0,14); lcd.printf("Pot 2 = %.2f", (float)pot2); wait(0.1); } }