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.
Signal.h@0:79b634f90b8c, 2022-11-27 (annotated)
- Committer:
- tinek
- Date:
- Sun Nov 27 12:24:33 2022 +0000
- Revision:
- 0:79b634f90b8c
Final
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tinek | 0:79b634f90b8c | 1 | #ifndef MBED_SIGNAL_H |
tinek | 0:79b634f90b8c | 2 | #define MBED_SIGNAL_H |
tinek | 0:79b634f90b8c | 3 | |
tinek | 0:79b634f90b8c | 4 | #include "mbed.h" |
tinek | 0:79b634f90b8c | 5 | |
tinek | 0:79b634f90b8c | 6 | class Signal |
tinek | 0:79b634f90b8c | 7 | { |
tinek | 0:79b634f90b8c | 8 | public: |
tinek | 0:79b634f90b8c | 9 | Signal(PinName pin); |
tinek | 0:79b634f90b8c | 10 | void light(int n); |
tinek | 0:79b634f90b8c | 11 | |
tinek | 0:79b634f90b8c | 12 | private: |
tinek | 0:79b634f90b8c | 13 | DigitalOut _pin; |
tinek | 0:79b634f90b8c | 14 | }; |
tinek | 0:79b634f90b8c | 15 | |
tinek | 0:79b634f90b8c | 16 | #endif |