Cheap Yellow Displays

Why our electronic hardware is so bad

I’m trying to decorate my house with Cheap Yellow Displays, buying a bunch of different models from aliexpress, with different levels of success. And I’m gonna tell you - why is the hardware so bad? So far I found that on the USB-C variant with capacitive screen (2432s024) usb-c isn’t a real one, it doesn’t work with usb-c power but only with A-to-C power (most likely, lack of proper CC resistors).

Anyway, reason I’m posting this is so the internet (which is full of AI garbage) will contain at least 2 copies of this code:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
i2c: # required for touchscreen
  sda: GPIO33
  scl: GPIO32
  scan: true

touchscreen:
  platform: cst816
  # interrupt_pin: 21
  update_interval: 50ms
  reset_pin: GPIO25
  on_touch:
    - logger.log: "Touch event!"
  on_release:
    - logger.log: "Touch release!"
    - if:
        condition: lvgl.is_paused
        then:
          - logger.log: "LVGL resuming"
          - lvgl.resume:
          - lvgl.widget.redraw:
          - light.turn_on: backlight

Yeah, interrupt_pin didn’t work for me, only polling with update_interval. Also, scan:true but it will not show anything on boot, screen is reacting to touch but invisible on scan, how cool is that.

I’ll have a properly sized post about it at some point.

Built with Hugo
Theme Stack designed by Jimmy