LED
Dependents: Semafor Karanovic_Semafor
led.h@0:8b4a8e2414db, 2020-11-29 (annotated)
- Committer:
- akaranovi
- Date:
- Sun Nov 29 12:09:03 2020 +0000
- Revision:
- 0:8b4a8e2414db
OK
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
akaranovi | 0:8b4a8e2414db | 1 | #ifndef MBED_LED_H |
akaranovi | 0:8b4a8e2414db | 2 | #define MBED_LED_H |
akaranovi | 0:8b4a8e2414db | 3 | #include "mbed.h" |
akaranovi | 0:8b4a8e2414db | 4 | //Klasa za LED koja daje funkcije za mijenjanje stanja |
akaranovi | 0:8b4a8e2414db | 5 | class LED |
akaranovi | 0:8b4a8e2414db | 6 | { |
akaranovi | 0:8b4a8e2414db | 7 | public: |
akaranovi | 0:8b4a8e2414db | 8 | LED(PinName pin); |
akaranovi | 0:8b4a8e2414db | 9 | void status(int status); |
akaranovi | 0:8b4a8e2414db | 10 | void flip(); |
akaranovi | 0:8b4a8e2414db | 11 | private: |
akaranovi | 0:8b4a8e2414db | 12 | DigitalOut _pin; |
akaranovi | 0:8b4a8e2414db | 13 | }; |
akaranovi | 0:8b4a8e2414db | 14 | #endif |