![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
2
Dependencies: mbed DevInterfaces MCP4728 MCP4728setaddr I2Cinterfaces
Diff: shutter.h
- Revision:
- 7:e649bb2b6187
diff -r d1e569f370ac -r e649bb2b6187 shutter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/shutter.h Mon Feb 04 14:24:10 2019 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" + +class Shutter +{ + public: + //Public functions + + Shutter( ); + + 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 ); + void toggleShutter( int SHnum ); + + void writeShutters( bool SH1, bool SH2, bool SH3, bool SH4 ); + + //Public variables + private: + DigitalOut* SH_ARR[8]; + //Private funtions + + //Private variables +}; \ No newline at end of file