Significantly reduce the delay times on line strobing

i2c
Savanni D'Gerinel 2022-06-26 12:50:07 -04:00
parent 789f261a47
commit 9536b2c2b9
2 changed files with 3 additions and 5 deletions

View File

@ -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);
}

View File

@ -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);
}