editable
Dependents: LineCamLPC LineCamLPC
TSL_1401.h@0:82f151c23f33, 2018-03-28 (annotated)
- Committer:
- andrey001207
- Date:
- Wed Mar 28 12:28:18 2018 +0000
- Revision:
- 0:82f151c23f33
to edit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrey001207 | 0:82f151c23f33 | 1 | #include <TSL_1401_config.h> |
andrey001207 | 0:82f151c23f33 | 2 | |
andrey001207 | 0:82f151c23f33 | 3 | class TSL_1401 |
andrey001207 | 0:82f151c23f33 | 4 | { |
andrey001207 | 0:82f151c23f33 | 5 | public: |
andrey001207 | 0:82f151c23f33 | 6 | TSL_1401(); |
andrey001207 | 0:82f151c23f33 | 7 | ~TSL_1401(); |
andrey001207 | 0:82f151c23f33 | 8 | void scanFrame(); |
andrey001207 | 0:82f151c23f33 | 9 | void refreshLine(); |
andrey001207 | 0:82f151c23f33 | 10 | |
andrey001207 | 0:82f151c23f33 | 11 | private: |
andrey001207 | 0:82f151c23f33 | 12 | DigitalOut SI(SI_PIN); |
andrey001207 | 0:82f151c23f33 | 13 | DigitalOut CLK (CLK_PIN); |
andrey001207 | 0:82f151c23f33 | 14 | AnalogIn AO(p15); |
andrey001207 | 0:82f151c23f33 | 15 | double rawData[128]; |
andrey001207 | 0:82f151c23f33 | 16 | int line[128]; |
andrey001207 | 0:82f151c23f33 | 17 | int status; |
andrey001207 | 0:82f151c23f33 | 18 | } |