1 OLED SPI Display 2 OLED Wiring Diagram
- Slides: 12
순서 1. OLED SPI Display란? 2. OLED Wiring Diagram 3. OLED U 8 glib 라이브러리와 함수 구조 4. OLED 코드 살펴보기
2. OLED Wiring Diagram 1. SPI 타입 OLED의 아두이노 Wiring
2. OLED Wiring Diagram 2. 전체 Wiring 구조
3. OLED U 8 glib 라이브러리와 함수 구조 1. OLED U 8 gilb 라이브러리 OLED 뿐만 아니라 LCD 및 다양한 디스플레이 장치의 그래픽 데이터를 표현할 수 있는 그래픽 전용 라이브러리 입니다. 현재 u 8 g 2를 이용하여 다양한 디스플레이 기능을 수행 할 수 있습니다. 아두이노에 SPI 방식으로 OLED를 활용한 이유는 결국 쉽게 OLED를 표현하기 위함입니다. (참고: https: //github. com/olikraus/u 8 glib/wiki) #include "U 8 glib. h" U 8 GLIB_SH 1106_128 X 64 u 8 g(13, 12, 9, 10, 11); // D 0(CLK)=13, D 1(MOSI)=12, CS=9, DC=10, Reset(RES)=11 void loop(void) { // picture loop u 8 g. first. Page(); do { draw(); } while( u 8 g. next. Page() ); // rebuild the picture after some delay(1000); } void draw(void) { // graphic commands to redraw the complete screen should be placed here u 8 g. set. Font(u 8 g_font_unifont); u 8 g. draw. Str( 0, 20, "Hello World!"); }
3. OLED U 8 glib 라이브러리와 함수 구조 2. 미세먼지 공기청정기 OLED 함수 구조 1 기본적인 라이브러리의 구조를 따르고 있으나 페이지 변환 등을 위한 기능으로 함수의 구조가 변경 되었습니다. #include "U 8 glib. h" U 8 glib. h 함수 등록하기 U 8 GLIB_SH 1106_128 X 64 u 8 g(13, 12, 9, 10, 11); // D 0(CLK)=13, D 1(MOSI)=12, CS=9, DC=10, Reset(RES)=11 사용할 OLED 타입 및 통신 방식 선언 //////////////OLED variables start/////////////////////// int initial. Count=1; int frame. Control=0; initial. Count // 초기 화면(로고)을 시현하기 위한 용도로 활용 frame. Control // 택트스위치로 콘트롤 할 OLED 화면 번호 const unsigned char PROGMEM asset 01[] const unsigned char PROGMEM asset 02[] const unsigned char PROGMEM asset 03[] const unsigned char PROGMEM asset 04[] const unsigned char PROGMEM asset 05[] const unsigned char PROGMEM asset 06[] 로고 화면을 시현할 로우데이터 char 배열 변수
- Wiring
- Dvst stands for
- Raster scan display advantages and disadvantages
- Cathode ray tube in computer graphics
- X618 honeywell
- Et rx1 receiver wiring diagram
- How to program a dts 500 gate motor
- Stanley pac 512
- Pixhawk wiring
- Phoenix lab controls
- Pac 512 controller
- Auma wiring diagram legend
- Nergeco door troubleshooting