|
|
@ -85,6 +85,17 @@ void Model01::setup(void) {
|
|
|
|
TWBR = 12; // This is 400mhz, which is the fastest we can drive the ATTiny
|
|
|
|
TWBR = 12; // This is 400mhz, which is the fastest we can drive the ATTiny
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Model01::enableHardwareTestMode () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Toggle the programming LEDS on
|
|
|
|
|
|
|
|
PORTD |= (1 << 5);
|
|
|
|
|
|
|
|
PORTB |= (1 << 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Disable the debouncer on the ATTinys
|
|
|
|
|
|
|
|
KeyboardHardware.setKeyscanInterval(2);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Model01::setCrgbAt(int8_t i, cRGB crgb) {
|
|
|
|
void Model01::setCrgbAt(int8_t i, cRGB crgb) {
|
|
|
|
if (i < 0) {
|
|
|
|
if (i < 0) {
|
|
|
|