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
'컴퓨터|인터넷' 카테고리의 다른 글
샐랙트스위치(select switch) 단자 연결 (0) | 2024.12.18 |
---|---|
SV, PV, MV란 (0) | 2024.08.16 |
가상세계 창조자 블랜더 01 (0) | 2022.12.09 |
Vim 사용법 (0) | 2022.08.28 |
git 사용법 (0) | 2021.01.02 |
댓글