diff options
Diffstat (limited to 'stmhal/lcd.c')
-rw-r--r-- | stmhal/lcd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stmhal/lcd.c b/stmhal/lcd.c index e73b6e16d3..cde6c36f67 100644 --- a/stmhal/lcd.c +++ b/stmhal/lcd.c @@ -274,11 +274,11 @@ STATIC mp_obj_t pyb_lcd_make_new(const mp_obj_type_t *type, size_t n_args, size_ mp_hal_pin_output(lcd->pin_bl); // init the LCD - HAL_Delay(1); // wait a bit + mp_hal_delay_ms(1); // wait a bit mp_hal_pin_low(lcd->pin_rst); // RST=0; reset - HAL_Delay(1); // wait for reset; 2us min + mp_hal_delay_ms(1); // wait for reset; 2us min mp_hal_pin_high(lcd->pin_rst); // RST=1; enable - HAL_Delay(1); // wait for reset; 2us min + mp_hal_delay_ms(1); // wait for reset; 2us min lcd_out(lcd, LCD_INSTR, 0xa0); // ADC select, normal lcd_out(lcd, LCD_INSTR, 0xc0); // common output mode select, normal (this flips the display) lcd_out(lcd, LCD_INSTR, 0xa2); // LCD bias set, 1/9 bias |