User Tools

Site Tools


arduino:displays_for_classic_arduinos:display_st7920_126x64_u8g2.ino

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

arduino:displays_for_classic_arduinos:display_st7920_126x64_u8g2.ino [2018/02/24 02:01] – created mithatarduino:displays_for_classic_arduinos:display_st7920_126x64_u8g2.ino [2018/02/24 02:11] (current) mithat
Line 11: Line 11:
  * Mithat Konar  * Mithat Konar
  */  */
 +
  
 #include <U8g2lib.h> #include <U8g2lib.h>
Line 16: Line 17:
 /* /*
    Pin assignments:    Pin assignments:
-   RST: 8 +   RS [CE/CS/SCE]: 10 
-   CE/CS/SCE: 10 +   R/W [DIN/DN/MOSI/DATA]: 11 (Arduino HW standard) 
-   DC/"D/C"/A0:+   E [CLK/SCLK/SCK]: 13  (Arduino HW standard) 
-   DIN/DN/MOSI/DATA: 11 (Arduino HW standard) +   PSBground (enable SPI) 
-   CLK/SCLK/SCK: 13  (Arduino HW standard) +   VCC/VDD: 5V 
-   VCC5V (part is allegedly 5V tolerant+   GND/VSS: ground
-   GND: ground+
 */ */
  
 const unsigned int CLOCK_PIN = 13, const unsigned int CLOCK_PIN = 13,
                    DATA_PIN = 11,                    DATA_PIN = 11,
-                   CS_PIN = 10+                   CS_PIN = 10;
-                   DC_PIN = 9, +
-                   RESET_PIN = 8;+
  
-U8G2_ST7920_128X64_1_HW_SPI disp = U8G2_ST7920_128X64_1_HW_SPI(U8G2_R0, CS_PIN, RESET_PIN);+U8G2_ST7920_128X64_1_HW_SPI disp = U8G2_ST7920_128X64_1_HW_SPI(U8G2_R0, CS_PIN);
  
 unsigned int counter = 80; unsigned int counter = 80;
Line 59: Line 57:
   delay(500);   delay(500);
 } }
- 
 </file> </file>
arduino/displays_for_classic_arduinos/display_st7920_126x64_u8g2.ino.1519437695.txt.gz · Last modified: 2018/02/24 02:01 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki