Electro-Tactile Display Stimulation
Fork of Stimulation by
Stimulation.h@0:609c2f02a156, 2016-06-21 (annotated)
- Committer:
- sura0111
- Date:
- Tue Jun 21 04:09:15 2016 +0000
- Revision:
- 0:609c2f02a156
Electro-Tactile Display stimulation class
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sura0111 | 0:609c2f02a156 | 1 | #pragma once |
sura0111 | 0:609c2f02a156 | 2 | // Shift Register definition |
sura0111 | 0:609c2f02a156 | 3 | #define HV507_NUM 1 |
sura0111 | 0:609c2f02a156 | 4 | |
sura0111 | 0:609c2f02a156 | 5 | class Stimulation |
sura0111 | 0:609c2f02a156 | 6 | { |
sura0111 | 0:609c2f02a156 | 7 | public: |
sura0111 | 0:609c2f02a156 | 8 | Stimulation(); |
sura0111 | 0:609c2f02a156 | 9 | void begin(); |
sura0111 | 0:609c2f02a156 | 10 | void setOn(unsigned char pin, short volume); |
sura0111 | 0:609c2f02a156 | 11 | void setOff(); |
sura0111 | 0:609c2f02a156 | 12 | void end(); |
sura0111 | 0:609c2f02a156 | 13 | private: |
sura0111 | 0:609c2f02a156 | 14 | short AD; // AD |
sura0111 | 0:609c2f02a156 | 15 | }; |
sura0111 | 0:609c2f02a156 | 16 |