File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed
Bluefruit52Lib/examples/Hardware/blinky Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 5
5
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
6
6
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN takes care
7
7
of use the correct LED pin whatever is the board used.
8
- If you want to know what pin the on-board LED is connected to on your Arduino model, check
8
+ If you want to know what pin the on-board LED is conn
9
+ ected to on your Arduino model, check
9
10
the Technical Specs of your board at https://www.arduino.cc/en/Main/Products
10
11
11
12
This example code is in the public domain.
20
21
// the setup function runs once when you press reset or power the board
21
22
void setup () {
22
23
// initialize digital pin LED_BUILTIN as an output.
23
- pinMode (LED_RED , OUTPUT);
24
+ pinMode (LED_BUILTIN , OUTPUT);
24
25
}
25
26
26
27
// the loop function runs over and over again forever
27
28
void loop () {
28
- digitalToggle (LED_RED); // turn the LED on (HIGH is the voltage level)
29
- delay (1000 ); // wait for a second
29
+ digitalToggle (LED_BUILTIN); // turn the LED on (HIGH is the voltage level)
30
+ delay (1000 ); // wait for a second
30
31
}
Original file line number Diff line number Diff line change @@ -399,7 +399,15 @@ extern "C"
399
399
{
400
400
void SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler (void )
401
401
{
402
+ #if CFG_DEBUG >= 3
403
+ SEGGER_SYSVIEW_RecordEnterISR ();
404
+ #endif
405
+
402
406
Wire.onService ();
407
+
408
+ #if CFG_DEBUG >= 3
409
+ SEGGER_SYSVIEW_RecordExitISR ();
410
+ #endif
403
411
}
404
412
}
405
413
#endif
@@ -411,7 +419,15 @@ extern "C"
411
419
{
412
420
void SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler (void )
413
421
{
422
+ #if CFG_DEBUG >= 3
423
+ SEGGER_SYSVIEW_RecordEnterISR ();
424
+ #endif
425
+
414
426
Wire1.onService ();
427
+
428
+ #if CFG_DEBUG >= 3
429
+ SEGGER_SYSVIEW_RecordExitISR ();
430
+ #endif
415
431
}
416
432
}
417
433
#endif
You can’t perform that action at this time.
0 commit comments