@@ -7,8 +7,8 @@
MPU9250 mpu;
-void toggleLed() {
- digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
+void blinkLed() {
+ digitalWrite(LED_BUILTIN, (millis()>>7) & 1);
}
void setup() {
@@ -70,7 +70,7 @@ void loop() {
);
Serial.write(outputBuffer);
- toggleLed();
+ blinkLed();