Demo to control 4 LEDs
Dependencies: BSP_DISCO_F469NI mbed
user/app.h@1:a6d179a9ffbb, 2017-10-31 (annotated)
- Committer:
- Faberge
- Date:
- Tue Oct 31 14:39:54 2017 +0000
- Revision:
- 1:a6d179a9ffbb
Update
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Faberge | 1:a6d179a9ffbb | 1 | /* |
Faberge | 1:a6d179a9ffbb | 2 | * app.h |
Faberge | 1:a6d179a9ffbb | 3 | * |
Faberge | 1:a6d179a9ffbb | 4 | * Copyright 2017 Faberge@TsarTeam |
Faberge | 1:a6d179a9ffbb | 5 | * |
Faberge | 1:a6d179a9ffbb | 6 | * This program is free software; you can redistribute it and/or modify |
Faberge | 1:a6d179a9ffbb | 7 | * it under the terms of the GNU General Public License as published by |
Faberge | 1:a6d179a9ffbb | 8 | * the Free Software Foundation; either version 2 of the License, or |
Faberge | 1:a6d179a9ffbb | 9 | * (at your option) any later version. |
Faberge | 1:a6d179a9ffbb | 10 | * |
Faberge | 1:a6d179a9ffbb | 11 | * This program is distributed in the hope that it will be useful, |
Faberge | 1:a6d179a9ffbb | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
Faberge | 1:a6d179a9ffbb | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
Faberge | 1:a6d179a9ffbb | 14 | * GNU General Public License for more details. |
Faberge | 1:a6d179a9ffbb | 15 | * |
Faberge | 1:a6d179a9ffbb | 16 | */ |
Faberge | 1:a6d179a9ffbb | 17 | |
Faberge | 1:a6d179a9ffbb | 18 | #ifndef APP_H |
Faberge | 1:a6d179a9ffbb | 19 | #define APP_H |
Faberge | 1:a6d179a9ffbb | 20 | |
Faberge | 1:a6d179a9ffbb | 21 | #include "Button.h" |
Faberge | 1:a6d179a9ffbb | 22 | #include "Screen.h" |
Faberge | 1:a6d179a9ffbb | 23 | #include "Switch.h" |
Faberge | 1:a6d179a9ffbb | 24 | #include "Textbox.h" |
Faberge | 1:a6d179a9ffbb | 25 | |
Faberge | 1:a6d179a9ffbb | 26 | #include "user.h" |
Faberge | 1:a6d179a9ffbb | 27 | |
Faberge | 1:a6d179a9ffbb | 28 | /* Screen variables */ |
Faberge | 1:a6d179a9ffbb | 29 | const int NEW_SWITCH_SCREEN = 1; |
Faberge | 1:a6d179a9ffbb | 30 | const int NEW_BUTTON_SCREEN = 2; |
Faberge | 1:a6d179a9ffbb | 31 | const int NEW_TEXT_SCREEN = 3; |
Faberge | 1:a6d179a9ffbb | 32 | |
Faberge | 1:a6d179a9ffbb | 33 | /* Screen functions */ |
Faberge | 1:a6d179a9ffbb | 34 | void createSwitchScreen(Screen *scr); |
Faberge | 1:a6d179a9ffbb | 35 | void createButtonScreen(Screen *scr); |
Faberge | 1:a6d179a9ffbb | 36 | void createTextScreen(Screen *scr); |
Faberge | 1:a6d179a9ffbb | 37 | |
Faberge | 1:a6d179a9ffbb | 38 | #endif |