大佬好,跟着教程做下来屏幕只亮了灯 还是黑屏的
发现新版引脚编号变了 请问怎么修改呀
lfdcn
January 4, 2024, 5:41am
43
我现在用tinyDRM通过modeset点亮了ili9341,但是更具体的如开机启动,LVGL这些都还没对接成功。应该需要走simple-drm吧还是?
查看了一下新的sdk,设备树定义的引脚是没有变化,依然可以用哈
在目前的教程里,设备树的引脚配置不需要改动,新版sdk不需要在u-boot-2021.10/board/cvitek/cv180x/board.c里编辑了,在cvi_board_init.c里已经配置好了,请忽略这个步骤
我最近用tinydrm驱动了st7789,配置跟fbtft没有区别,可以正常显示控制台信息的
2 Likes
Just tried with my 3.95inch ILI9488 also, thank you
dnech
January 21, 2024, 10:03am
48
Were you able to get proper colors with ILI9488? Mine works fine (either with FBTFT or DRM driver) in terminal mode (black and white output), but the colors are totally messed.up:
Have not used much yet, just console output. As i use usb keybaord input but have not connected it up - with the larger display - https://www.youtube.com/watch?v=zAN8VrhhglE
Try adding bgr=<1>; to dts ?
Here are some related issue to this display only supporting 18-bit pxel format ?
opened 05:30PM - 15 Jun 23 UTC
### The problem
With a fully wired ILI9488 connected over 4-wire SPI, any col… ors are rendered inverse to their definitions (i.e pink is green, white is black, black is white, etc.)
### Which version of ESPHome has the issue?
2023.5.5
### What type of installation are you using?
Docker
### Which version of Home Assistant has the issue?
_No response_
### What platform are you using?
ESP32
### Board
Wemos S2 mini
### Component causing the issue
ili9xxx
### Example YAML snippet
```yaml
esp32:
board: lolin_s2_mini
framework:
type: arduino
font:
- file: 'fonts/OpenSans-Regular.ttf'
id: font_opensans_regular
size: 28
spi:
clk_pin: GPIO14
mosi_pin: GPIO13
miso_pin: GPIO12
color:
- id: c_primary
red: 0%
blue: 100%
green: 0%
display:
- id: disp
platform: ili9xxx
model: "ILI9488"
cs_pin: GPIO9
dc_pin: GPIO10
reset_pin: GPIO11
update_interval: 5s
color_palette: NONE
lambda: |-
it.fill(Color::WHITE);
it.print(0, 0, id(font_opensans_regular), id(c_primary), TextAlign::TOP_LEFT, "Hello World!");
```
### Anything in the logs that might be useful for us?
```txt
[17:26:48][C][spi:101]: SPI bus:
[17:26:48][C][spi:102]: CLK Pin: GPIO14
[17:26:48][C][spi:103]: MISO Pin: GPIO12
[17:26:48][C][spi:104]: MOSI Pin: GPIO13
[17:26:48][C][spi:106]: Using HW SPI: YES
[17:26:49][C][ili9xxx:047]: ili9xxx
[17:26:49][C][ili9xxx:047]: Rotations: 0 °
[17:26:49][C][ili9xxx:047]: Dimensions: 480px x 320px
[17:26:49][C][ili9xxx:050]: Color mode: 16bit
[17:26:49][C][ili9xxx:060]: 18-Bit Mode: YES
[17:26:49][C][ili9xxx:063]: Reset Pin: GPIO11
[17:26:49][C][ili9xxx:064]: DC Pin: GPIO10
[17:26:49][C][ili9xxx:070]: Update Interval: 5.0s
[17:26:49][C][psram:020]: PSRAM:
[17:26:49][C][psram:021]: Available: YES
[17:26:49][C][psram:024]: Size: 2047 KB
```
### Additional information
My gut says that simply doing `this->invert_display_(true);` in the ili9488 setup routine ([ili9xxx_display.cpp#403](https://github.com/esphome/esphome/blob/467e42d8aa5c1dd8a6ec13b09075117d2f209e6a/esphome/components/ili9xxx/ili9xxx_display.cpp#L403)) should be sufficient - but I'm hesitating on bringing up a PR for this just in case people have perfectly colorful implementations (and we end up inverting everyone's except mine!)
Perhaps a YAML flag to invert colours would be a better idea, with a suggested default for the ili9488 (and m3stack) of `true`?
esphome:dev
← lnicolas83:ili9xxx_a
opened 09:58PM - 29 Jun 23 UTC
# What does this implement/fix?
Add model "ili9488_A" so that some screens th… at had the correct colors before PR #4849 can continue to work as before.
## Types of changes
- [ ] Bugfix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Other
**Related issue or feature (if applicable):** fixes https://github.com/esphome/issues/issues/4603
**Pull request in [esphome-docs](https://github.com/esphome/esphome-docs) with documentation (if applicable):** https://github.com/esphome/esphome-docs/pull/3031
## Test Environment
- [X] ESP32
- [ ] ESP32 IDF
- [ ] ESP8266
- [ ] RP2040
## Example entry for `config.yaml`:
```yaml
# Example config.yaml
display:
- platform: ili9xxx
model: ili9488_A
id: my_display
cs_pin: GPIO14
dc_pin: 10
reset_pin: 9
spi_id: spi_display
```
## Checklist:
- [X] The code change is tested and works locally.
- [ ] Tests have been added to verify that the new code works (under `tests/` folder).
If user exposed functionality or configuration variables are added/changed:
- [X] Documentation added/updated in [esphome-docs](https://github.com/esphome/esphome-docs).
and on Raspberry Pi
bgr=0
issue
1 Like
dnech
January 23, 2024, 7:38am
50
Thank you!
The problem with colors on the ILI9488 muse be caused by byte swapping, i.e. instead of
RGBRGB…
the display receives
GRRBBG…
It looks like the driver decides to swap each two bytes of the screen data before sending over SPI. I hope I will be able to kill the bug soon, and will publish the result.