tes ir atas semua
Dependencies: mbed ADS1115 StepperMotor SRF05 TPA81new
Uvtron/Uvtron.h@12:1e3227a6fcd7, 2018-12-16 (annotated)
- Committer:
- hisyamfs
- Date:
- Sun Dec 16 01:53:07 2018 +0000
- Revision:
- 12:1e3227a6fcd7
test board v1
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 |