Skip to content

on_disk argument for IconWidget to use OnDiskBitmap #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

FoamyGuy
Copy link
Contributor

This adds on on_disk argument to the IconWidget constructor. If set to True it will use OnDiskBitmap instead of imageload which allows it to use less memory and seems to draw a bit quicker.

I've defaulted it to False because imageload allows for animating the icons, and I am not sure if that is possible with OnDiskBitmap. So user can choose which is more important to them for their specific device and project.

I tested this using the most recent version of the touch_deck_code.py from here: https://github.com/FoamyGuy/Touch_Deck_Working_Files on a Feather RP2040

@FoamyGuy FoamyGuy requested a review from a team March 17, 2021 01:58
Copy link
Contributor

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Please add the new constructor argument to the class docstring!

Copy link
Contributor

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see it now

@jepler jepler merged commit 054b12a into adafruit:main Mar 17, 2021
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Mar 17, 2021
Updating https://github.com/adafruit/Adafruit_CircuitPython_FRAM to 1.3.8 from 1.3.7:
  > Merge pull request adafruit/Adafruit_CircuitPython_FRAM#25 from caternuson/iss24

Updating https://github.com/adafruit/Adafruit_CircuitPython_GPS to 3.8.1 from 3.8.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_GPS#60 from lesamouraipourpre/length-data-type-check
  > Merge pull request adafruit/Adafruit_CircuitPython_GPS#61 from lesamouraipourpre/docs2
  > Revert "[WILL BE REVERSED] Making change to test adabot release check"
  > [WILL BE REVERSED] Making change to test adabot release check

Updating https://github.com/adafruit/Adafruit_CircuitPython_LC709203F to 2.0.3 from 2.0.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_LC709203F#10 from noahcoad/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_TCA9548A to 0.4.0 from 0.3.5:
  > Merge pull request adafruit/Adafruit_CircuitPython_TCA9548A#27 from caternuson/iss26_scan

Updating https://github.com/adafruit/Adafruit_CircuitPython_DisplayIO_Layout to 1.3.0 from 1.2.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_DisplayIO_Layout#17 from FoamyGuy/iconwidget_ondisk

Updating https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT to 5.0.5 from 5.0.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#74 from KTibow/patch-1
  > Merge pull request adafruit/Adafruit_CircuitPython_MiniMQTT#72 from FoamyGuy/ignoreimport

Updating https://github.com/adafruit/Adafruit_CircuitPython_PIOASM to 0.2.3 from 0.2.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_PIOASM#14 from adafruit/jepler-rotary-example

Updating https://github.com/adafruit/Adafruit_CircuitPython_PortalBase to 1.4.1 from 1.4.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_PortalBase#22 from makermelissa/main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants