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