From 9536b2c2b99973b941d1bb23060d46f86634121f Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Sun, 26 Jun 2022 12:50:07 -0400 Subject: [PATCH] Significantly reduce the delay times on line strobing --- display/display.c | 6 ++---- shift_register/shift_register.c | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/display/display.c b/display/display.c index e742106..77bec1d 100644 --- a/display/display.c +++ b/display/display.c @@ -17,22 +17,20 @@ You should have received a copy of the GNU General Public License along with Lum void display_strobe_line(gpio_t *line) { set_line(line); - _delay_us(100); + _delay_us(50); clear_line(line); - _delay_us(100); + _delay_us(50); } void write_instruction(display_t *disp, uint8_t bitcode) { clear_line(&disp->register_select); sr_send_msb(&disp->reg, bitcode); - _delay_ms(1); display_strobe_line(&disp->enable); } void write_char(display_t *disp, uint8_t bitcode) { set_line(&disp->register_select); sr_send_msb(&disp->reg, bitcode); - _delay_ms(1); display_strobe_line(&disp->enable); } diff --git a/shift_register/shift_register.c b/shift_register/shift_register.c index e783747..61fd08c 100644 --- a/shift_register/shift_register.c +++ b/shift_register/shift_register.c @@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License along with Lum void sr_strobe_line(gpio_t *line) { set_line(line); - _delay_us(100); + _delay_us(1); clear_line(line); }