소스 검색

Reduced u8glib SPI speed to fosc/8

Makes the lib compatible with most LCDs
Dirk Eichel 12 년 전
부모
커밋
c28e71a1bf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      ArduinoAddons/Arduino_0.xx/libraries/U8glib/utility/u8g_com_arduino_hw_spi.c

+ 1
- 1
ArduinoAddons/Arduino_0.xx/libraries/U8glib/utility/u8g_com_arduino_hw_spi.c 파일 보기

115
             1	1		fclk/128
115
             1	1		fclk/128
116
       */
116
       */
117
       SPCR = 0;
117
       SPCR = 0;
118
-      SPCR =  (1<<SPE) | (1<<MSTR)|(0<<SPR1)|(0<<SPR0)|(0<<CPOL)|(0<<CPHA);
118
+      SPCR =  (1<<SPE) | (1<<MSTR)|(0<<SPR1)|(1<<SPR0)|(0<<CPOL)|(0<<CPHA);
119
 #ifdef U8G_HW_SPI_2X
119
 #ifdef U8G_HW_SPI_2X
120
       SPSR = (1 << SPI2X);  /* double speed, issue 89 */
120
       SPSR = (1 << SPI2X);  /* double speed, issue 89 */
121
 #endif
121
 #endif

Loading…
취소
저장