Fix reset
This commit is contained in:
parent
911ffd78e6
commit
1aac4e79a2
4
st7735.c
4
st7735.c
@ -131,7 +131,9 @@ lcd_t *lcd_init(int spiSpeed, int channel, int cs, int a0, int rs)
|
|||||||
if(instance->rs != -1)
|
if(instance->rs != -1)
|
||||||
{
|
{
|
||||||
gpio.pinMode(instance->rs, OUTPUT);
|
gpio.pinMode(instance->rs, OUTPUT);
|
||||||
gpio.digitalWrite(instance->rs, HIGH); /* Reset OFF */
|
gpio.digitalWrite(instance->rs, LOW);
|
||||||
|
gpio.delay(10);
|
||||||
|
gpio.digitalWrite(instance->rs, HIGH);
|
||||||
gpio.delay(10);
|
gpio.delay(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user