diff --git a/src/lib/Denko.h b/src/lib/Denko.h index b72a148..6d483fc 100644 --- a/src/lib/Denko.h +++ b/src/lib/Denko.h @@ -97,9 +97,10 @@ class Denko { // Included Libraries void pulseRead (); //cmd = 9 + + // Servos void servoToggle (); //cmd = 10 void servoWrite (); //cmd = 11 - void handleSerial (); //cmd = 12 // Single Bit Bang UART #ifdef DENKO_UART_BB diff --git a/src/lib/DenkoLEDArray.cpp b/src/lib/DenkoLEDArray.cpp index fafbadb..186bf7c 100644 --- a/src/lib/DenkoLEDArray.cpp +++ b/src/lib/DenkoLEDArray.cpp @@ -31,7 +31,7 @@ void Denko::showLEDArray() { // ATmega4809 still needs this delay to avoid corrupt data. Not sure why. #if defined(__AVR_ATmega4809__) - delayMicroseconds(64); + microDelay(64); #endif // Write the pixel buffer to the array. diff --git a/src/lib/DenkoPulseInput.cpp b/src/lib/DenkoPulseInput.cpp index 81aff3c..1a5e2f3 100644 --- a/src/lib/DenkoPulseInput.cpp +++ b/src/lib/DenkoPulseInput.cpp @@ -27,7 +27,7 @@ void Denko::pulseRead(){ uint16_t resetTime = (auxMsg[1] << 8) | auxMsg[0]; pinMode(pin, OUTPUT); digitalWrite(pin, bitRead(val, 1)); - delayMicroseconds(resetTime); + microDelay(resetTime); } pinMode(pin, INPUT); byte state = digitalRead(pin);