File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ void board_init(void) {
106
106
& pin_PB03 ,
107
107
NO_BRIGHTNESS_COMMAND ,
108
108
1.0f , // brightness (ignored)
109
- true , // auto_brightness
109
+ false , // auto_brightness
110
110
false, // single_byte_bounds
111
111
false, // data_as_commands
112
112
true, // auto_refresh
Original file line number Diff line number Diff line change @@ -18,4 +18,6 @@ OPTIMIZATION_FLAGS = -Os
18
18
19
19
LD_COMMON = boards/common_default.ld
20
20
LD_FILE = boards/STM32F401xe_boot.ld
21
- # LD_FILE = boards/STM32F401xe_fs.ld # use for internal flash
21
+
22
+ # For debugging - also comment BOOTLOADER_OFFSET and BOARD_VTOR_DEFER
23
+ # LD_FILE = boards/STM32F401xe_fs.ld
Original file line number Diff line number Diff line change @@ -239,13 +239,14 @@ void common_hal_pulseio_pwmout_deinit(pulseio_pwmout_obj_t* self) {
239
239
HAL_TIM_PWM_Stop (& self -> handle , self -> channel );
240
240
}
241
241
reset_pin_number (self -> tim -> pin -> port ,self -> tim -> pin -> number );
242
- self -> tim = NULL ;
243
242
244
243
//if reserved timer has no active channels, we can disable it
245
244
if (!reserved_tim [self -> tim -> tim_index - 1 ]) {
246
245
tim_frequencies [self -> tim -> tim_index - 1 ] = 0x00 ;
247
246
stm_peripherals_timer_free (self -> handle .Instance );
248
247
}
248
+
249
+ self -> tim = NULL ;
249
250
}
250
251
251
252
void common_hal_pulseio_pwmout_set_duty_cycle (pulseio_pwmout_obj_t * self , uint16_t duty ) {
You can’t perform that action at this time.
0 commit comments