some fixes, strange zeros in between

This commit is contained in:
hg
2014-11-05 19:19:20 +01:00
parent d16530898e
commit ed17033c78
4 changed files with 14 additions and 26 deletions

8
led.h
View File

@ -15,18 +15,18 @@ public:
void on() {
m_state = 1;
digitalWrite(m_pin, m_state);
}
};
void off() {
m_state = 0;
digitalWrite(m_pin, m_state);
}
};
void toggle() {
m_state ^= 1;
digitalWrite(m_pin, m_state);
}
};
private:
uint8_t m_state;
uint8_t m_pin;
}
};
#endif // _LED_H_