Closed DJDevon3 closed 2 years ago
This doesn't appear to be the entire program: HX8357
is not imported.
Yeah it's part of a long script, tried my best to pull everything out. Missed 1. :P from adafruit_hx8357 import HX8357
Can see the pretty screenshot it took here
BitmapSaver works great!
The simpletest (and default behavior of the library) is written to assume it's taking a screenshot of a built-in display. The featherwing counts as an external display for this purpose and therefore this library cannot find it automatically, it must be passed as the 2nd argument as you noted.
I think we would want to keep the simpletest as-is showing the most basic case. But we could add a new example script for external display screenshots. In the example we can note which specific display it initializes but also can mention that people can substitute in the proper initialization for the display they are using.
Are you interested in making a new PR with the script you've shared added to the examples/
directory @DJDevon3 ?
Sure but I've never made a PR. No idea how. :/
OK got github for windows installed. Think I submitted a PR adding a tft featherwing example? It's showing up as a pull request to me. Pretty sure that worked.
@DJDevon3 are you still working on this? If you want, I can add the "First Good Issue" label to this and open it up for Hacktoberfest in a couple weeks!
@tekktrik Surprised this one is still open. The problem was that I was attempting to use code designed for built-in displays on an external display. At the time I didn't understand the difference. It wasn't a bug, more like inexperienced user error. It was just an issue of a missing example for external displays. I contributed a TFT featherwing example which can also be used for external displays. Still look back on this one fondly, my first ever PR. Closing.
On 3.5" TFT Featherwing with on-board SD Card the screenshot simpletest fails due to save_pixels invalid 2nd argument. Bitmap or Display expected but no 2nd argument was given. Here's the code that works in Circuit Python 7.3.x. on NRF52840 Feather Sense + TFT Featherwing with SD Card