![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
tes ir atas semua
Dependencies: mbed ADS1115 StepperMotor SRF05 TPA81new
Uvtron/Uvtron.h@49:d23d76689933, 2019-03-06 (annotated)
- Committer:
- hisyamfs
- Date:
- Wed Mar 06 13:17:10 2019 +0000
- Revision:
- 49:d23d76689933
- Parent:
- 12:1e3227a6fcd7
tes bisa semua, tanpa servo. uvtron nggak bisa
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hisyamfs | 12:1e3227a6fcd7 | 1 | #ifndef UVTRON_H |
hisyamfs | 12:1e3227a6fcd7 | 2 | #define UVTRON_H |
hisyamfs | 12:1e3227a6fcd7 | 3 | |
hisyamfs | 12:1e3227a6fcd7 | 4 | #include "mbed.h" |
hisyamfs | 12:1e3227a6fcd7 | 5 | |
hisyamfs | 12:1e3227a6fcd7 | 6 | class Uvtron |
hisyamfs | 12:1e3227a6fcd7 | 7 | { |
hisyamfs | 12:1e3227a6fcd7 | 8 | public: |
hisyamfs | 12:1e3227a6fcd7 | 9 | // Constructor |
hisyamfs | 12:1e3227a6fcd7 | 10 | Uvtron(PinName a); |
hisyamfs | 12:1e3227a6fcd7 | 11 | |
hisyamfs | 12:1e3227a6fcd7 | 12 | unsigned int Counter, PrevCounter, NextCounter; |
hisyamfs | 12:1e3227a6fcd7 | 13 | unsigned char Flag; |
hisyamfs | 12:1e3227a6fcd7 | 14 | unsigned char FlagScan; |
hisyamfs | 12:1e3227a6fcd7 | 15 | |
hisyamfs | 12:1e3227a6fcd7 | 16 | void Count(); |
hisyamfs | 12:1e3227a6fcd7 | 17 | void Read(); |
hisyamfs | 12:1e3227a6fcd7 | 18 | void UVScan(); |
hisyamfs | 12:1e3227a6fcd7 | 19 | |
hisyamfs | 12:1e3227a6fcd7 | 20 | private: |
hisyamfs | 12:1e3227a6fcd7 | 21 | InterruptIn _a; |
hisyamfs | 12:1e3227a6fcd7 | 22 | unsigned char i; |
hisyamfs | 12:1e3227a6fcd7 | 23 | }; |
hisyamfs | 12:1e3227a6fcd7 | 24 | |
hisyamfs | 12:1e3227a6fcd7 | 25 | #endif |
hisyamfs | 12:1e3227a6fcd7 | 26 |