The benefit of this is you can now define binary sensors (buttons!) if you want to do actions. I’ve simply divided the screen up into four quarters below
As per the usual docs for the touchscreen, you can limit the buttons to a particular page by defining a page_id: within the binary sensor configuration.
It seems like the RFID sensor is not working when you hold an RFID card against it, unlike with the other RFID sensor that works. What could be the reason for this?
Sorry but I have no idea Jarne. As I showed earlier, the tag reader is working fine on my unit although someone else said they were having issues where they needed to swipe the card numerous times to get it to work.
I just borrowed off what others did with their touchscreen drivers. And at the end of it all, I actually found a component already built (ft5x06) that would have worked by just changing the i2c address…
Still, it’s all tidied up now and should work ok for what is required - still working on why gestures aren’t being reported properly though.
Going from this post , there might be an additional setting you can enable for the display to disable eight_bit_color. Supposed to increase draw speed at the expense of memory.
I’ve updated the screen component over on my github to incorporate the changes, and it speeds up the screen signficantly. It will automatically default to 16 bit colour, so no need to change the configuration at all.
Now the screen is much faster, and we can define touch buttons, I’ve revised my main menu screen and playing around with using the round display for setting values.
Hello, I looked at your version 2, it’s nice! Could you share or put this in your GitHub so that it can be downloaded? This would be great, thanks in advance!
Just grab something you like/is suitable from online with a free use/personal use license. I just googled dark grey background and grabbed that looked semi decent to play around with.
The animated gif isn’t used anywhere at the moment anyway so you could remove, I was testing something but it didn’t work, so isn’t used at the moment.
Yep, there are plenty of options available for the display. I’m just playing around with it myself, I don’t think I’ll actually need 7 options on the menu page, but just wanted to see what it looked like.
Thanks Beccsjb. I am only building off the work from dgaust.
Have chucked a copy of my test code on Github for you. Be aware that it is just my tinker code, so some things may not work as intended, extra code that’s not needed, etc.
No images to upload - all icons used are MDI icons.
@atomic10 did you get the Port A i2c bus to work? It works for me if I disable the display in the esphome YAML but not when it is enabled. I suspect this is due to the loop() taking a long time on the gc9a01. Has found a working approach?
I had no success with getting the external port working with either an am2320 temperature probe or a sx1509 port expander.
It would see the address of both devices when scanning the bus, but would not receive data from them and I am pretty sure you are right - there is too much blocking code being used for the display to get the timing right for the second bus.
Yeah, the display blocks a lot, even with nothing being drawn it blocks. Ive not really looked into the component as to why, or how it could be improved just yet.
That said, im using an ld2410 presence sensor via the external port connection with no issues. But not i2c.