Promjena stanja ledice
On_Off.h@0:5cd439f68160, 2021-02-20 (annotated)
- Committer:
- ekunovic
- Date:
- Sat Feb 20 16:19:16 2021 +0000
- Revision:
- 0:5cd439f68160
Seminarski rad za kolegij mikroupravljaci
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ekunovic | 0:5cd439f68160 | 1 | #ifndef MBED_LED_H |
ekunovic | 0:5cd439f68160 | 2 | #define MBED_LED_H |
ekunovic | 0:5cd439f68160 | 3 | #include "mbed.h" |
ekunovic | 0:5cd439f68160 | 4 | //Klasa za LED koja daje funkcije za mijenjanje stanja |
ekunovic | 0:5cd439f68160 | 5 | class LED |
ekunovic | 0:5cd439f68160 | 6 | { |
ekunovic | 0:5cd439f68160 | 7 | public: |
ekunovic | 0:5cd439f68160 | 8 | LED(PinName pin); |
ekunovic | 0:5cd439f68160 | 9 | void status(int status); |
ekunovic | 0:5cd439f68160 | 10 | void flip(); |
ekunovic | 0:5cd439f68160 | 11 | private: |
ekunovic | 0:5cd439f68160 | 12 | DigitalOut _pin; |
ekunovic | 0:5cd439f68160 | 13 | }; |
ekunovic | 0:5cd439f68160 | 14 | #endif |