diff --git a/main.c b/main.c index fdacb6d..5d522a9 100644 --- a/main.c +++ b/main.c @@ -8,6 +8,7 @@ #define LED_PIN PB5 // Define the pin connected to the LED #include +#include #include #include @@ -55,7 +56,7 @@ int main(void) { MPU6050_Read_Accel(accel_data); UART_println("Accelerometer (mg): X=%d, Y=%d, Z=%d", accel_data[0], accel_data[1], accel_data[2]); - _delay_ms(1000); + sleep_mode(); } return 0;