MU_konstrukcijski zadatak_VD
Dependents: MU_upravljanje_raskrzjem_VD
MU_upravljanje_raskrzjem.h@0:fd1214c429d2, 2020-11-25 (annotated)
- Committer:
- Vdavidovi
- Date:
- Wed Nov 25 16:27:02 2020 +0000
- Revision:
- 0:fd1214c429d2
MU_upravljanje_raskrzjem
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Vdavidovi | 0:fd1214c429d2 | 1 | #ifndef MU_upravljanje_raskrzjem_h |
Vdavidovi | 0:fd1214c429d2 | 2 | #define MU_upravljanje_raskrzjem_h |
Vdavidovi | 0:fd1214c429d2 | 3 | #include "mbed.h" |
Vdavidovi | 0:fd1214c429d2 | 4 | class Traffic{ |
Vdavidovi | 0:fd1214c429d2 | 5 | public: |
Vdavidovi | 0:fd1214c429d2 | 6 | Traffic(PinName light); |
Vdavidovi | 0:fd1214c429d2 | 7 | void light_on(int t, int v1, int v2); |
Vdavidovi | 0:fd1214c429d2 | 8 | |
Vdavidovi | 0:fd1214c429d2 | 9 | private: |
Vdavidovi | 0:fd1214c429d2 | 10 | DigitalOut light; |
Vdavidovi | 0:fd1214c429d2 | 11 | |
Vdavidovi | 0:fd1214c429d2 | 12 | }; |
Vdavidovi | 0:fd1214c429d2 | 13 | #endif |