Skip to content
Snippets Groups Projects
Commit b73ba26b authored by chris-bo's avatar chris-bo
Browse files

Update ultralcd_st7920_u8glib_rrd.h

parent 901c3c53
No related branches found
No related tags found
Loading
...@@ -27,9 +27,15 @@ static void ST7920_SWSPI_SND_8BIT(uint8_t val) ...@@ -27,9 +27,15 @@ static void ST7920_SWSPI_SND_8BIT(uint8_t val)
for( i=0; i<8; i++ ) for( i=0; i<8; i++ )
{ {
WRITE(ST7920_CLK_PIN,0); WRITE(ST7920_CLK_PIN,0);
#if F_CPU == 20000000
__asm__("nop\n\t");
#endif
WRITE(ST7920_DAT_PIN,val&0x80); WRITE(ST7920_DAT_PIN,val&0x80);
val<<=1; val<<=1;
WRITE(ST7920_CLK_PIN,1); WRITE(ST7920_CLK_PIN,1);
#if F_CPU == 20000000
__asm__("nop\n\t""nop\n\t");
#endif
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment