File tree 1 file changed +8
-8
lines changed 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,13 @@ extern uint32_t _heap_end;
95
95
96
96
int main (int argc , char * * argv ) {
97
97
98
+
98
99
soft_reset :
100
+
101
+ led_init ();
102
+
103
+ led_state (1 , 1 ); // MICROPY_HW_LED_1 aka MICROPY_HW_LED_RED
104
+
99
105
mp_stack_set_top (& _ram_end );
100
106
101
107
// Stack limit should be less than real stack size, so we have a chance
@@ -192,14 +198,6 @@ pin_init0();
192
198
}
193
199
#endif
194
200
195
- #if (MICROPY_HW_HAS_LED )
196
- led_init ();
197
-
198
- do_str ("import board\r\n" \
199
- "board.LED(1).on()" ,
200
- MP_PARSE_FILE_INPUT );
201
- #endif
202
-
203
201
// Main script is finished, so now go into REPL mode.
204
202
// The REPL mode can change, or it can request a soft reset.
205
203
int ret_code = 0 ;
@@ -225,6 +223,8 @@ pin_init0();
225
223
pwm_start ();
226
224
#endif
227
225
226
+ led_state (1 , 0 );
227
+
228
228
#if MICROPY_VFS || MICROPY_MBFS
229
229
// run boot.py and main.py if they exist.
230
230
pyexec_file_if_exists ("boot.py" );
You can’t perform that action at this time.
0 commit comments