File tree 1 file changed +8
-3
lines changed 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ int main(void)
26
26
27
27
// initialize I2C:
28
28
if (!twi_master_init ())
29
- for (;; nrf_gpio_pin_toggle (LED ), nrf_delay_ms (50 )); // quick blink if error
29
+ for (;; nrf_gpio_pin_toggle (LED ), nrf_delay_ms (200 )); // quick blink if error
30
30
31
31
// initialize IMU:
32
32
nrf_delay_ms (4 ); // time needed to power up the IMU
33
33
if (!mpu6050_init (DEVADR ))
34
- for (;; nrf_gpio_pin_toggle (LED ), nrf_delay_ms (150 )); // less quick blink if error
34
+ for (;; nrf_gpio_pin_toggle (LED ), nrf_delay_ms (600 )); // less quick blink if error
35
35
36
36
while (true) {
37
37
const uint8_t to = 10 ; // ms
@@ -41,6 +41,11 @@ int main(void)
41
41
simple_uart_putstring ((const uint8_t * )"Received: " );
42
42
simple_uart_put (cr );
43
43
simple_uart_putstring ((const uint8_t * )"\r\n" );
44
+
45
+ for (int i = 0 ; i < 6 ; i ++ ) {
46
+ nrf_gpio_pin_toggle (LED );
47
+ nrf_delay_ms (30 );
48
+ }
44
49
}
45
50
}
46
51
@@ -49,7 +54,7 @@ int main(void)
49
54
50
55
for (int i = 0 ; i < 4 ; i ++ ) {
51
56
nrf_gpio_pin_toggle (LED );
52
- nrf_delay_ms (100 );
57
+ nrf_delay_ms (90 );
53
58
}
54
59
}
55
60
}
You can’t perform that action at this time.
0 commit comments