bitluni / ESP32Lib

http://bitluni.net/esp32-vga/
441 stars 78 forks source link

Composite through internal DAC or resistor ladder parallel output #47

Closed Martin-Laclaustra closed 3 years ago

Martin-Laclaustra commented 4 years ago

This allows grayscale output through the internal DAC (only one connection, from pin 25 or 26). It includes definitions for PAL or NTSC, combined with fake progressive low resolution or with interlaced high resolution (be careful with memory requirements for the DAC option there, interlaced may exceed that availabe). I needed to improve the container "ModeComposite" to describe signals in more detail, which makes the container incompatible with current definitions (and probably with previous composite modes). However, I created the equivalent to "CompositeL8.h" which is "CompositeGrayLadder.h" and should work as a drop-in replacement. I could not test it with you boards (because I do not have them), but it worked with a "toy" resistor ladder that I built. I would be glad to hear if you could test them with your boards. Fixes #42

Martin-Laclaustra commented 4 years ago

This is implemented upon the master branch, not upon my modified interrupt-based driver like some of my other pull-requests. So this should be relatively easy to merge.