nrf5: Updating example in main.c on how to execute string before REPL is set up, to allow for boards with two leds. Todo for later is to update this code such that it will skip this LED toggle when there are no leds defined. Or use an example not depending on LEDs.
This commit is contained in:
parent
976785e1d5
commit
7aa7bad78a
@ -178,8 +178,11 @@ pin_init0();
|
||||
do_str("import pyb\r\n" \
|
||||
"pyb.LED(1).on()",
|
||||
MP_PARSE_FILE_INPUT);
|
||||
#elif (MICROPY_HW_LED_COUNT == 2)
|
||||
do_str("import pyb\r\n" \
|
||||
"pyb.LED(1).on()",
|
||||
MP_PARSE_FILE_INPUT);
|
||||
#else
|
||||
|
||||
do_str("import pyb\r\n" \
|
||||
"pyb.LED(1).on()\r\n" \
|
||||
"pyb.LED(3).on()",
|
||||
|
Loading…
Reference in New Issue
Block a user