Significantly reduce the delay times on line strobing
This commit is contained in:
parent
789f261a47
commit
9536b2c2b9
|
@ -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) {
|
void display_strobe_line(gpio_t *line) {
|
||||||
set_line(line);
|
set_line(line);
|
||||||
_delay_us(100);
|
_delay_us(50);
|
||||||
clear_line(line);
|
clear_line(line);
|
||||||
_delay_us(100);
|
_delay_us(50);
|
||||||
}
|
}
|
||||||
|
|
||||||
void write_instruction(display_t *disp, uint8_t bitcode) {
|
void write_instruction(display_t *disp, uint8_t bitcode) {
|
||||||
clear_line(&disp->register_select);
|
clear_line(&disp->register_select);
|
||||||
sr_send_msb(&disp->reg, bitcode);
|
sr_send_msb(&disp->reg, bitcode);
|
||||||
_delay_ms(1);
|
|
||||||
display_strobe_line(&disp->enable);
|
display_strobe_line(&disp->enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
void write_char(display_t *disp, uint8_t bitcode) {
|
void write_char(display_t *disp, uint8_t bitcode) {
|
||||||
set_line(&disp->register_select);
|
set_line(&disp->register_select);
|
||||||
sr_send_msb(&disp->reg, bitcode);
|
sr_send_msb(&disp->reg, bitcode);
|
||||||
_delay_ms(1);
|
|
||||||
display_strobe_line(&disp->enable);
|
display_strobe_line(&disp->enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
void sr_strobe_line(gpio_t *line) {
|
||||||
set_line(line);
|
set_line(line);
|
||||||
_delay_us(100);
|
_delay_us(1);
|
||||||
clear_line(line);
|
clear_line(line);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue