adafruit / Adafruit_CircuitPython_ProgressBar

Dynamic progress bar widget for CircuitPython displays
MIT License
6 stars 9 forks source link

Simpletest improvements #14

Closed FoamyGuy closed 4 years ago

FoamyGuy commented 4 years ago

These changes improve the simple test by making it more screen size independent.

The background bmp has been removed. Most screens default to black background anyway so this was not visually doing anything in most cases I think.

The width of the progress bar has been changed to be based on the screen width, that way this example will work on more different screen sizes and the progress bar will still fit on the screen.

Changes tested on Wio Terminal, PyGamer, and CLUE.

This resolves #9

kattni commented 4 years ago

@FoamyGuy Are you up for updating the guides and related code suggested by Brent?

FoamyGuy commented 4 years ago

@kattni I am up for giving it a try.

Those projects UIs could be made a bit more generic which would allow them to fit on differently sized screens a bit better. However I will caution both of them do make use of other hardware peripherals available on their respective target devices. So the options for other devices to run them on might be a bit limited at the moment.

The 2fa code tool uses the Wifi co-processor to access the network to set up the code configuration (if I understand correctly). I think the next closet target device that it could support is maybe a PyBadge, or PyGamer with an Airlift Featherwing or Ethernet Featherwing plugged in. Those both have a smaller screen than the PyPortal so they would require adjusting the UI to fit. The PyPortal Titano has a larger resolution I think. So perhaps there is room to make the UI scale up nicely as well as scale down nicely.

jeplayer uses the SDCard and headphone jack on the PyGamer for storing music files, and listening to them playback via headphones resapectively. The UI could be adjusted to be more screen size independent but I'm not aware of any other strong candidates for target devices that this could be used on. The ideal candidate would have a built-in screen with a different size than PyGamer, and have a built-in SDcard slot, and 3.5mm jack. I will think on it and see if I can come up with a combination of hardware that would be suitable to run this project.

It will likely take me a little while to get to these though. I've got a few other things on my todo list already, and am working with limited time still at the moment for a few more weeks while I teach in the evenings.

jepler commented 4 years ago

pygamer has a speaker, an SD card slot, and a different sized display. but you'd also have to switch the whole UI from being stick-based to being touchscreen-based. I toyed with it but in the end it was outside the scope of the JEplayer project.