Unfortunately, I don't have an ESP32-S3 TFT to try out yet. Yes, I agree, that matches the pins that arduino is using, so it's weird that your arduino sample works, but esphome does not. #define NEOPIXEL_POWER_ON HIGH // power pin state when on #define NEOPIXEL_NUM 1 // number of neopixels #define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1) #define USB_SERIAL "" // Empty string for MAC adddress #define USB_PRODUCT "Feather ESP32-S2 Reverse TFT" ![]() Pins_arduino.h for the reversetft from arduino-esp32/pins_arduino.h at master The correct pins are defined in pins_arduino.h inside of the esp32 arduino package.Įventually when esphome picks up a newer platform.io, we'll pick up the adafruit_feather_esp32s2_reversetft board and we can get the pins that way. I use straight Arduino code here, so probably won't compile if you are using EDF.Īlso, note, that Adafruit's pinout diagram for the s2 reverse tft is wrong for a bunch of the pins in the online sheet. There's probably a better way to pull pin 7 high before anything else happens (it needs to happen before the st7789v component tries to send any command over the spi bus). It.print(0, 0, id(roboto), "Hello World!") lambda: "pinMode(7, OUTPUT) digitalWrite(7, HIGH) " Will report back if I get this working, otherwise I would very much appreciate any advice! ![]() I'm reviewing the generated c++ code and see in the comments that my i2c power ping is set to "pullup: false". I attempted to replicate this in ESPhome's yaml config without any change in behavior. From my interpretation, it first turns on the backlight, then the I2C power, waits 10ms, then performs a screen initialization by setting the whole screen to black (0x000). I was able to get the display to work with CircuitPython but I have no idea what makes it happen.Įdit again to add that I found some Arduino code on Adafruit's discord that does properly activate the TFT display. If the display would work using Arduino code that could be merged into esphome. Their forum has folks with the same complaint and no answers. ![]() I also attempted to use the Adafruit example Arduino code but haven't successfully produced any display output. Here's a couple of snippets of my code that relate to the TFT power pin pullup and display config, perhaps someone can spot anything I missed or messed up? esphome:įWIW the backlight clearly turns on but nothing else is displayed. I tried to configure this, but it doesn't seem to work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |