Browse Source

Update ultralcd_st7920_u8glib_rrd.h

chris-bo 9 years ago
parent
commit
b73ba26b23
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      Marlin/ultralcd_st7920_u8glib_rrd.h

+ 6
- 0
Marlin/ultralcd_st7920_u8glib_rrd.h View File

@@ -27,9 +27,15 @@ static void ST7920_SWSPI_SND_8BIT(uint8_t val)
27 27
   for( i=0; i<8; i++ )
28 28
   {
29 29
     WRITE(ST7920_CLK_PIN,0);
30
+    #if F_CPU == 20000000
31
+      __asm__("nop\n\t"); 
32
+    #endif
30 33
     WRITE(ST7920_DAT_PIN,val&0x80); 
31 34
     val<<=1;
32 35
     WRITE(ST7920_CLK_PIN,1);
36
+    #if F_CPU == 20000000
37
+      __asm__("nop\n\t""nop\n\t"); 
38
+    #endif
33 39
   }
34 40
 }
35 41
 

Loading…
Cancel
Save