Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CRC16 FreescaleIAP FreescaleWatchdog GGSProtocol LM75B PIMA Parameters PersistentCircularQueue SerialNumberV2COM mbed-dev-watchdog_2016_03_04
Fork of smartRamalKW by
boxAlarm.h@22:b66e36356dd4, 2015-10-19 (annotated)
- Committer:
- tpadovani
- Date:
- Mon Oct 19 20:34:15 2015 +0000
- Revision:
- 22:b66e36356dd4
- Parent:
- 21:62316df0c24b
debug condicional
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| tpadovani | 19:1f623070b9dd | 1 | #ifndef BOXALARM_H | 
| tpadovani | 19:1f623070b9dd | 2 | #define BOXALARM_H | 
| tpadovani | 19:1f623070b9dd | 3 | |
| tpadovani | 19:1f623070b9dd | 4 | #include "mbed.h" | 
| tpadovani | 19:1f623070b9dd | 5 | #include "appParameters.h" | 
| tpadovani | 19:1f623070b9dd | 6 | #include "alarm.h" | 
| tpadovani | 22:b66e36356dd4 | 7 | #include "debug.h" | 
| tpadovani | 19:1f623070b9dd | 8 | |
| tpadovani | 19:1f623070b9dd | 9 | class BoxAlarm { | 
| tpadovani | 19:1f623070b9dd | 10 | |
| tpadovani | 19:1f623070b9dd | 11 | void stateChanged(); | 
| tpadovani | 19:1f623070b9dd | 12 | |
| tpadovani | 19:1f623070b9dd | 13 | public: | 
| tpadovani | 19:1f623070b9dd | 14 | BoxAlarm(); | 
| tpadovani | 19:1f623070b9dd | 15 | void init(); | 
| tpadovani | 19:1f623070b9dd | 16 | void checkState(); | 
| tpadovani | 19:1f623070b9dd | 17 | }; | 
| tpadovani | 19:1f623070b9dd | 18 | |
| tpadovani | 21:62316df0c24b | 19 | extern DigitalIn boxSensor; | 
| tpadovani | 19:1f623070b9dd | 20 | extern DigitalOut ledBox; | 
| tpadovani | 19:1f623070b9dd | 21 | extern Alarm alarm; | 
| tpadovani | 19:1f623070b9dd | 22 | |
| tpadovani | 19:1f623070b9dd | 23 | #endif | 
