Fade 1 image to show another.
Fade 1 image to show another.
Hi, I planning a project that has two grayscale images placed one over the other.
Is there a way in micropython to have the top image fade from full visibility to 0 visibility making the bottom visable?
Or even only fade the pixels that are different colours?
Is there a way in micropython to have the top image fade from full visibility to 0 visibility making the bottom visable?
Or even only fade the pixels that are different colours?
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Fade 1 image to show another.
You might be more likely to get a response if you told us what hardware you plan to use: display type and host device.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: Fade 1 image to show another.
sorry, I was planning to use a GC9A01 round screen with esp32 D0DQ6 esp32 pico d4 and RP2040.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
GC9A01 display driver
OK, so the question is whether anyone has written a MicroPython driver for the GC9A01 display. I'm not aware of one, and a forum search draws a blank. You may have to DIY. This usually involves porting Arduino C code to MicroPython, a task that requires familiarity with low level coding in both languages and being comfortable reading device datasheets.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: GC9A01 display driver
That is going to be the hard part but I was wondering if there was a generic graphical routine for the fade effect.pythoncoder wrote: ↑Thu Apr 15, 2021 7:46 amOK, so the question is whether anyone has written a MicroPython driver for the GC9A01 display. I'm not aware of one, and a forum search draws a blank. You may have to DIY. This usually involves porting Arduino C code to MicroPython, a task that requires familiarity with low level coding in both languages and being comfortable reading device datasheets.
I have an idea on how to do it but it will be slow and memory intensive.
Re: GC9A01 display driver
There isn't one, but there is for CircuitPython. Tod Kurt (@todbot) suggested it's very similar to other displays, except it has a custom init code: https://github.com/tylercrumpton/Circui ... /gc9a01.pypythoncoder wrote: ↑Thu Apr 15, 2021 7:46 amOK, so the question is whether anyone has written a MicroPython driver for the GC9A01 display.
Re: GC9A01 display driver
Todbot?scruss wrote: ↑Thu Apr 15, 2021 3:46 pmThere isn't one, but there is for CircuitPython. Tod Kurt (@todbot) suggested it's very similar to other displays, except it has a custom init code: https://github.com/tylercrumpton/Circui ... /gc9a01.pypythoncoder wrote: ↑Thu Apr 15, 2021 7:46 amOK, so the question is whether anyone has written a MicroPython driver for the GC9A01 display.
And here I thought he was an actual bot!
Thanks for the link!
Re: Fade 1 image to show another.
I'm working on a driver for the GC9A01 display. The driver is working with this display on a Raspberry Pi PICO. After a little more testing I'll try it with the ESP32. I should have something up on GitHub this weekend.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Fade 1 image to show another.
I love that watch display with all its detail - even shadows under the hands. I know just how much work it takes to produce a display as pretty as that.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: Fade 1 image to show another.
Pictures don’t do it justice, it looks even better in person.