Closed eudoxos closed 3 years ago
Quick&dirty driver based on SDL2 (author of 99% of this: Paul Sokolovsky, MIT/zlib licensed): aclock_large.py
with color_setup.py
looks like this:
from drivers.usdl2 import FrameBuffer as SSD
ssd=SSD(width=480,height=320)
I managed to use micropython buffer as texture and map that to the SDL surface, including scaling.
from drivers.usdl2 import SDLWindow as SSD
ssd=SSD(width=256,height=256,title='SDL test',scale=3)
I just can't get the colors right (the rgb function)... - any hint?
I think this is best progressed as a fork. There are three reasons why I don't intend to merge this:
That said, what you are doing is very worthwhile. I think a fork dedicated to Unix/Braille (removing all my drivers and simplifying the docs) is the way to go with this.
The intent was to develop for microcontrollers on desktop (Linux), not to run those drivers on uCs.
I only went quickly at drawille preamble and it "looked like* MIT; but it is in fact AGPL :/ too bad, though most of it could be re-implemented (it is just a special way of putting bits into array).
I understand your reservations and I am closing this PR then.
Uses adapted drawille for braille output, and can use ucurses for terminal clearing (both optional). Not made for high FPS (probably).
Say this in color_setup.py: