This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SCDQ5541 { | |
private: | |
int m_clock, m_data, m_load; | |
void bitbang(unsigned char code) | |
{ | |
digitalWrite(m_load, LOW); | |
for (int i = 0; i < 8; i++) { | |
digitalWrite(m_clock, LOW); | |
digitalWrite(m_data, code & 0x01); |