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: mbed
onoff.h@0:ac12fb337ed8, 2019-03-01 (annotated)
- Committer:
- Kurogami
- Date:
- Fri Mar 01 15:49:13 2019 +0000
- Revision:
- 0:ac12fb337ed8
Voila voila
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Kurogami | 0:ac12fb337ed8 | 1 | #ifndef ONOFF_H |
| Kurogami | 0:ac12fb337ed8 | 2 | #define ONOFF_H |
| Kurogami | 0:ac12fb337ed8 | 3 | |
| Kurogami | 0:ac12fb337ed8 | 4 | #include <DigitalOut.h> |
| Kurogami | 0:ac12fb337ed8 | 5 | #include <bp.h> |
| Kurogami | 0:ac12fb337ed8 | 6 | |
| Kurogami | 0:ac12fb337ed8 | 7 | namespace smartled |
| Kurogami | 0:ac12fb337ed8 | 8 | { |
| Kurogami | 0:ac12fb337ed8 | 9 | |
| Kurogami | 0:ac12fb337ed8 | 10 | class onoff : public mbed::DigitalOut |
| Kurogami | 0:ac12fb337ed8 | 11 | { |
| Kurogami | 0:ac12fb337ed8 | 12 | public: |
| Kurogami | 0:ac12fb337ed8 | 13 | onoff(PinName name,smartled::bp * bp, std::size_t * click_cpt); |
| Kurogami | 0:ac12fb337ed8 | 14 | |
| Kurogami | 0:ac12fb337ed8 | 15 | void run(void); |
| Kurogami | 0:ac12fb337ed8 | 16 | |
| Kurogami | 0:ac12fb337ed8 | 17 | void operator ()(void); |
| Kurogami | 0:ac12fb337ed8 | 18 | private: |
| Kurogami | 0:ac12fb337ed8 | 19 | smartled::bp * m_bp; |
| Kurogami | 0:ac12fb337ed8 | 20 | bool m_state; |
| Kurogami | 0:ac12fb337ed8 | 21 | std::size_t * m_click_cpt; |
| Kurogami | 0:ac12fb337ed8 | 22 | }; |
| Kurogami | 0:ac12fb337ed8 | 23 | |
| Kurogami | 0:ac12fb337ed8 | 24 | } |
| Kurogami | 0:ac12fb337ed8 | 25 | #endif // ONOFF_H |