adafruit / Adafruit_CircuitPython_BitmapSaver

Save displayio bitmaps to BMP disk
MIT License
5 stars 9 forks source link

Move code into repo #1

Closed dastels closed 5 years ago

dastels commented 5 years ago

Um... why isn't travis running checks on this?

ladyada commented 5 years ago

there's no code you commited?

dastels commented 5 years ago

OK... I've had some git weirdness happening with the one. I think it's good now (and it's checking).

brentru commented 5 years ago

@dastels Ran into an error with a PyGamer running CircuitPython 4.1.0-beta and the simpletest example in this PR.

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Setting up SD card
Building sample bitmap and palette
Saving bitmap
Error saving bitmap
Traceback (most recent call last):
  File "code.py", line 50, in <module>
  File "/lib/adafruit_bitmapsaver.py", line 115, in save_bitmap
  File "/lib/adafruit_bitmapsaver.py", line 112, in save_bitmap
  File "/lib/adafruit_bitmapsaver.py", line 84, in _write_pixels
TypeError: 'Palette' object is not subscriptable
OSError
dastels commented 5 years ago

Yes. It requires 5.0

brentru commented 5 years ago

@dastels Ok, could you update the README.rst to reflect the requirement for CircuitPython 5.0?