![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
2
Dependencies: mbed DevInterfaces MCP4728 MCP4728setaddr I2Cinterfaces
shutter.h@9:2d70aa45f16e, 2019-03-22 (annotated)
- Committer:
- kstokely
- Date:
- Fri Mar 22 12:48:52 2019 +0000
- Revision:
- 9:2d70aa45f16e
- Parent:
- 7:e649bb2b6187
Export to mbed studio;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kstokely | 7:e649bb2b6187 | 1 | #include "mbed.h" |
kstokely | 7:e649bb2b6187 | 2 | |
kstokely | 7:e649bb2b6187 | 3 | class Shutter |
kstokely | 7:e649bb2b6187 | 4 | { |
kstokely | 7:e649bb2b6187 | 5 | public: |
kstokely | 7:e649bb2b6187 | 6 | //Public functions |
kstokely | 7:e649bb2b6187 | 7 | |
kstokely | 7:e649bb2b6187 | 8 | Shutter( ); |
kstokely | 7:e649bb2b6187 | 9 | |
kstokely | 7:e649bb2b6187 | 10 | void init( DigitalOut* SH1_1, DigitalOut* SH1_2, DigitalOut* SH2_1, DigitalOut* SH2_2, DigitalOut* SH3_1, DigitalOut* SH3_2, DigitalOut* SH4_1, DigitalOut* SH4_2 ); |
kstokely | 7:e649bb2b6187 | 11 | void toggleShutter( int SHnum ); |
kstokely | 7:e649bb2b6187 | 12 | |
kstokely | 7:e649bb2b6187 | 13 | void writeShutters( bool SH1, bool SH2, bool SH3, bool SH4 ); |
kstokely | 7:e649bb2b6187 | 14 | |
kstokely | 7:e649bb2b6187 | 15 | //Public variables |
kstokely | 7:e649bb2b6187 | 16 | private: |
kstokely | 7:e649bb2b6187 | 17 | DigitalOut* SH_ARR[8]; |
kstokely | 7:e649bb2b6187 | 18 | //Private funtions |
kstokely | 7:e649bb2b6187 | 19 | |
kstokely | 7:e649bb2b6187 | 20 | //Private variables |
kstokely | 7:e649bb2b6187 | 21 | }; |