Project Fahrrad-licht
Dependencies: mbed STM_Fahrrad_Licht Led_Func_Lib
main.cpp@0:e5e8b94349f6, 2018-11-24 (annotated)
- Committer:
- lordofthestorm12
- Date:
- Sat Nov 24 11:54:50 2018 +0000
- Revision:
- 0:e5e8b94349f6
Dynamic LED "Bike" Light
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lordofthestorm12 | 0:e5e8b94349f6 | 1 | #include "mbed.h" |
lordofthestorm12 | 0:e5e8b94349f6 | 2 | #include "STM_Fahrrad_Licht.h" |
lordofthestorm12 | 0:e5e8b94349f6 | 3 | #include "Button_Bar.h" |
lordofthestorm12 | 0:e5e8b94349f6 | 4 | |
lordofthestorm12 | 0:e5e8b94349f6 | 5 | StateDefine Machine; |
lordofthestorm12 | 0:e5e8b94349f6 | 6 | Button_Bar Input; |
lordofthestorm12 | 0:e5e8b94349f6 | 7 | |
lordofthestorm12 | 0:e5e8b94349f6 | 8 | |
lordofthestorm12 | 0:e5e8b94349f6 | 9 | int main() |
lordofthestorm12 | 0:e5e8b94349f6 | 10 | { |
lordofthestorm12 | 0:e5e8b94349f6 | 11 | while(1) { |
lordofthestorm12 | 0:e5e8b94349f6 | 12 | |
lordofthestorm12 | 0:e5e8b94349f6 | 13 | Machine.STATEChange(Input.checkButtons(), Input.checkTimer()); |
lordofthestorm12 | 0:e5e8b94349f6 | 14 | |
lordofthestorm12 | 0:e5e8b94349f6 | 15 | } |
lordofthestorm12 | 0:e5e8b94349f6 | 16 | } |