diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-02 15:02:57 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-02 15:02:57 +1100 |
commit | 6ab5512132d5b3d19a5bf029cb27829d41e76f8e (patch) | |
tree | d1dc10771b963ac3be632b2ba90e2499321d83ea /stmhal/lcd.c | |
parent | 1f549a3496ac543390a170a7eb7b242475063016 (diff) | |
download | micropython-6ab5512132d5b3d19a5bf029cb27829d41e76f8e.tar.gz micropython-6ab5512132d5b3d19a5bf029cb27829d41e76f8e.zip |
stmhal: Use mp_hal_delay_ms instead of HAL_Delay.
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 |