From b09d680754419180bdba1fe480c45d05d8f8ffd0 Mon Sep 17 00:00:00 2001 From: unlockable Date: Fri, 8 Sep 2023 13:25:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=87=BD=E6=95=B0=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E9=A1=BA=E5=BA=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 8By8/8By8.ino | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/8By8/8By8.ino b/8By8/8By8.ino index bdb50c4..f39a134 100644 --- a/8By8/8By8.ino +++ b/8By8/8By8.ino @@ -711,14 +711,6 @@ void setup() { z_ref = SensorReader::angle.z; } -ISR(TIMER4_COMPA_vect) { - Cube::do_blinking(); -} - -ISR(TIMER5_COMPA_vect) { - SensorReader::read_data_from_sensor_interrupt(); -} - void loop() { Serial.print("Zref: "); Serial.println(z_ref); @@ -838,4 +830,12 @@ void loop() { // int z = round(calculator.evaluate()); // Serial.println(z); // Serial.print("Here"); +} + +ISR(TIMER4_COMPA_vect) { + Cube::do_blinking(); +} + +ISR(TIMER5_COMPA_vect) { + SensorReader::read_data_from_sensor_interrupt(); } \ No newline at end of file