Hello Everyone!
Some time ago I was gifted a Badger 2040W and tinkered with it for a while and it’s been in the drawer ever since. Recently I thought I could maybe use it with my home automation, specifically Home Assistant and ESPHome.
It was relatively easy to get the Pico configured and all the buttons and LEDs are controllable in ESPHome. However for the life of me I cannot get the display to work. I’ve poured over the schematic for the Badger and assigned pins, checked if they’re active low. Tried different versions of the Inky display but only a black screen, nothing other than a black screen.
I have not checked the GPIOs you listed here, I think you can do that with the schematic provided on the product page.
It is not clear what program/firmware you are running on the Badger2040W. This is important because the display needs special commands during initialization.
Hi @bablokb,
I’m using ESPHome and it has “components” for the processor and the peripherals. I have successfully configured and used the board with the GPIO on the Badger. The pin assignments for the buttons and LEDs I got from the schematic and all of those work.
The component for the waveshare display is configured with the SPI bus and the display as follows;
spi:
clk_pin: GPIO18
mosi_pin: GPIO19
miso_pin: GPIO16 # might not be needed?
I can’t find anywhere the specific model of the display used, in ESPHome there are 6 different 2.9 inch display types listed. I’ve tried almost every combination with no luck.
It could just be as you say, the ESPHome component just does not initialise the part correctly.
That is exactly my experience: I tried to use the display with standard CircuitPython drivers, but it turned out the display needed some very special handling.
It’s been a LONG time since I did any really programming, but I might see if I can find the source for the display initialisation in the Badger code. ESPHome is all open source and I know how to find that. The issue is will I be able to make ANY sense of either and come up with a fix that will work?
Still need to find the exact model of the display used on the Badger though.