Created
June 28, 2024 11:51
-
-
Save raspberrypisig/b0f8fcc808621006613a6ef356237205 to your computer and use it in GitHub Desktop.
wokwi ili9341
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 1, | |
"author": "Raspberry Pi", | |
"editor": "wokwi", | |
"parts": [ | |
{ | |
"type": "board-esp32-s3-devkitc-1", | |
"id": "esp", | |
"top": -86.58, | |
"left": 311.77, | |
"attrs": {} | |
}, | |
{ "type": "wokwi-ili9341", "id": "lcd2", "top": -95.2, "left": 66.9, "attrs": {} } | |
], | |
"connections": [ | |
[ "esp:TX", "$serialMonitor:RX", "", [] ], | |
[ "esp:RX", "$serialMonitor:TX", "", [] ], | |
[ "lcd2:VCC", "esp:3V3.1", "red", [ "v96", "h134.4", "v-345.6" ] ], | |
[ "lcd2:GND", "esp:GND.4", "black", [ "v86.4", "h297.6", "v-134.4", "h9.6" ] ], | |
[ "esp:15", "lcd2:CS", "green", [ "h-57.65", "v259.2", "h-124.8" ] ], | |
[ "esp:4", "lcd2:RST", "green", [ "h-48.05", "v288", "h-124.8" ] ], | |
[ "lcd2:D/C", "esp:5", "green", [ "v57.6", "h124.8", "v-268.8" ] ], | |
[ "lcd2:MOSI", "esp:6", "green", [ "v48", "h124.79", "v-249.6" ] ], | |
[ "lcd2:SCK", "esp:7", "green", [ "v38.4", "h124.79", "v-230.4" ] ], | |
[ "lcd2:MISO", "esp:20", "green", [ "v28.8", "h249.59", "v-105.6", "h-38.4" ] ] | |
], | |
"dependencies": {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: oled | |
esp32: | |
board: esp32-s3-devkitc-1 | |
wifi: | |
ssid: Wokwi-GUEST | |
web_server: | |
logger: | |
spi: | |
clk_pin: GPIO7 | |
mosi_pin: GPIO6 | |
miso_pin: GPIO20 | |
color: | |
- id: my_red | |
red: 100% | |
green: 3% | |
blue: 5% | |
display: | |
- platform: ili9xxx | |
model: TFT 2.4 | |
cs_pin: GPIO15 | |
dc_pin: GPIO5 | |
reset_pin: GPIO4 | |
lambda: |- | |
it.rectangle(0, 0, 200, 50, id(my_red)); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment