본문 바로가기
컴퓨터|인터넷

raspberryPi + SSD1351 +python

by 즐거운 지니 2023. 6. 3.
반응형

라즈베리파이에 장착된 ssd1351 oled display

 

GND - GND

VCC - 3.3v

SCL - 23, GPIO11, SPICLK

SDA - 19, GPIO10, SPIMOSI

RES - 22, GPIO25

DC - 18, GPIO24

CS - 24, GPIO8, SPICE0

 

리부트

- https://pypi.org/project/luma.oled/

 

luma.oled

A small library to drive an OLED device with either SSD1306, SSD1309, SSD1322, SSD1325, SSD1327, SSD1331, SSD1351, SSD1362, SH1106, SH1107 or WS0010 chipset

pypi.org

 

인스톨

pip3 install luma.oled

 

example 설치

- https://github.com/rm-hull/luma.examples

 

GitHub - rm-hull/luma.examples: Companion repo for running examples against the luma.oled, luma.lcd, luma.led_matrix and luma.em

Companion repo for running examples against the luma.oled, luma.lcd, luma.led_matrix and luma.emulator display drivers. - GitHub - rm-hull/luma.examples: Companion repo for running examples against...

github.com

sudo usermod -a -G i2c,spi,gpio pi
sudo apt install python3-dev python3-pip libfreetype6-dev libjpeg-dev build-essential
sudo apt install libsdl-dev libportmidi-dev libsdl-ttf2.0-dev libsdl-mixer1.2-dev libsdl-image1.2-dev

git clone https://github.com/rm-hull/luma.examples.git
cd luma.examples

sudo -H pip3 install -e .

cd examples
python3 3d_box.py --config ../conf/ssd1351.conf

 

반응형

'컴퓨터|인터넷' 카테고리의 다른 글

SV, PV, MV란  (0) 2024.08.16
가상세계 창조자 블랜더 01  (0) 2022.12.09
Vim 사용법  (0) 2022.08.28
git 사용법  (0) 2021.01.02
세비즈 무선 헤드셋 블루투스 사양  (0) 2020.12.24

댓글