-

Dependents:   STM32F407_Semafor

Committer:
divicic
Date:
Thu Nov 26 07:51:49 2020 +0000
Revision:
0:441580ecf6c2
-

Who changed what in which revision?

UserRevisionLine numberNew contents of line
divicic 0:441580ecf6c2 1 #ifndef MBED_TrafficLight1_H
divicic 0:441580ecf6c2 2 #define MBED_TrafficLight1_H
divicic 0:441580ecf6c2 3 #include "mbed.h"
divicic 0:441580ecf6c2 4
divicic 0:441580ecf6c2 5 class TrafficLight1
divicic 0:441580ecf6c2 6 {
divicic 0:441580ecf6c2 7 public:
divicic 0:441580ecf6c2 8 TrafficLight1(PinName pin);
divicic 0:441580ecf6c2 9 void flash(int n);
divicic 0:441580ecf6c2 10 void On();
divicic 0:441580ecf6c2 11 void Off();
divicic 0:441580ecf6c2 12 private:
divicic 0:441580ecf6c2 13 DigitalOut _pin;
divicic 0:441580ecf6c2 14 };
divicic 0:441580ecf6c2 15 #endif