Commit graph

48 commits

Author SHA1 Message Date
Alec Delaney
86de3352e5 Update version string 2022-08-16 18:09:16 -04:00
ee4d7dfcaa
make it OK to call auto_dim_display if brightness is not settable 2022-04-26 14:15:48 -05:00
4a23749b6d
fix activity() to immediately un-dim screen 2022-04-26 14:15:48 -05:00
e1f96af4d6
fix use of auto_refresh property during display update 2022-04-26 14:15:48 -05:00
c8cbc432f5
changes made by black via pre-commit 2022-04-26 14:15:47 -05:00
d2df1ef3be
use annotations and TYPE_CHECKING
.. and eliminate imports no longer used since the change to the
acceleration property
2022-04-26 14:15:47 -05:00
998e0f988c
make it OK to call acceleration() if no accelerometer; fix return type 2022-04-26 14:15:46 -05:00
cd3f9a8f62
fix movement check call 2022-04-26 14:15:46 -05:00
eb31a88b0b
remove circuitpython6 compatibility code 2022-04-26 14:15:42 -05:00
d5660075ec
Add, use show method to reduce display jank
This also removes 'with open(...) as ...:' because for correct
functionality the OnDiskBitmap needs to retain the open file handle for
as long as it exists.

In particular, this fixes a problem where switching to the 'business card'
view with a background image would redraw twice.

Calling `show()` also acts as activity, so it'll brighten the screen.
At present, this is not configurable.
2022-04-26 13:56:57 -05:00
bae8fe746e
Fix dimming of display
The old code would never brighten again after it went dim.

Now, it will brighten on movement or when `activity()` is called from
outside.
2022-04-26 13:54:16 -05:00
0237d66585
use bitmap text
in most cases this is more performant and can also use less RAM
2022-04-26 13:51:37 -05:00
39d3f9c4b9
Allow padding to be a float
padding_above is in "lines of text" units, so being able to position by
0.3 e.g., is useful to get a desired layout.
2022-04-26 13:51:20 -05:00
Alec Delaney
3ec03ecb0a "Reformatted per new black version" 2022-03-29 18:16:31 -04:00
Alec Delaney
756048d5b8 Linted and reformatted 2022-02-19 22:13:55 -05:00
Alec Delaney
299ae8ae80 Add type annotations 2022-02-19 22:05:44 -05:00
Kattni
a7e3aa09ee
Merge pull request #48 from FoamyGuy/remove_gamepad_usage
Remove gamepad usage
2021-11-09 14:32:14 -05:00
dherrada
953991edad Linted 2021-11-05 03:16:35 -04:00
Jared VanFleet
fdfecf1e35 More error correction 2021-08-13 16:10:27 -05:00
Jared VanFleet
b831795f8d revert made too many changes 2021-08-13 16:08:07 -05:00
Jared VanFleet
09b67e58c0 update pybadger for clearer text 2021-08-13 16:05:07 -05:00
Jared VanFleet
d7d1e73b04
make black.py happy
black check should succeed now.
2021-08-13 12:46:42 -05:00
Jared VanFleet
1b8e81933b
Update pybadger_base font color
Update to use font-color with background color in custom business card.
2021-08-13 09:03:28 -05:00
Jared VanFleet
24dd18e732
Update for box around text
Updated code to allow for background_color to be set for box around text in business card or custom.  None = Transparent, Color number Hex = background box color.
2021-08-13 08:53:34 -05:00
foamyguy
bbd233edb9 removing usage of gamepad and using keypad instead. 2021-07-24 13:45:34 -05:00
James Carr
d2af62fc17 Remove usage of max_glyphs with Label 2021-07-22 14:04:56 +01:00
James Carr
d28f539ba2 Update the pixel_shader usage of OnDiskBitmap
Refactor code referencing CircuitPython 4 & 5
Filled out requirements.txt
Include most of the packages in api.rst.
I can't get docs to build for cpb_gizmo so have left it out of the docs for now.
2021-07-14 17:36:39 +01:00
James Carr
2e467851e9 Remove execute bit from .py files 2021-07-11 18:25:14 +01:00
James Carr
ed1257ad19 Remove max_size parameter 2021-07-05 11:53:33 +01:00
dherrada
27ef477142 Ran pre-commit, added licenses 2021-01-14 13:04:21 -05:00
foamyguy
cac38e3374 changes needed in base for mag tag 2020-11-15 14:10:25 -06:00
FoamyGuy
e70058f0c4 adding support for circuit playground bluefruit with tft gizmo 2020-07-09 19:05:39 -05:00
FoamyGuy
2b09d30a62 fix pylint issues in base 2020-06-18 18:33:36 -05:00
FoamyGuy
2589e549e1 adding support for Pew Pew M4. refactor neopixels into the board specific modules. 2020-06-17 18:46:38 -05:00
dherrada
48fb1a4454 Ran black, updated to pylint 2.x 2020-03-16 16:41:59 -04:00
Kattni Rembor
ec3e5236ae Rename show to show_custom_badge 2020-02-27 11:49:14 -05:00
Kattni Rembor
6da6a493ee Update docs. 2020-02-26 14:09:32 -05:00
Kattni Rembor
7d29575425 Whitespace or args. 2020-02-26 12:57:27 -05:00
Kattni Rembor
f485fdafb8 More thorough docs. 2020-02-26 12:47:41 -05:00
Kattni Rembor
f9d5117b66 Refactor into PyBadgerBase class. Now works. 2020-02-25 21:39:45 -05:00
Kattni Rembor
2252e3f6de Functional. Need to sort out code.py. 2020-02-25 16:31:39 -05:00
Kattni Rembor
ad1c351c0f Linting. 2020-02-22 10:43:01 -05:00
Kattni Rembor
4dc752a28c Super custom badge added. 2020-02-21 18:46:09 -05:00
Kattni Rembor
ee0b46a63e Create enable_speaker method. 2020-02-20 10:58:00 -05:00
Roy Hooper
07f6d9f5dd Merge remote-tracking branch 'ada/master' into clue-adaptation 2020-02-18 20:47:57 -05:00
Kattni Rembor
b78db488ac Still Sphinxing. 2020-02-18 19:10:00 -05:00
Kattni Rembor
928e009fd7 Linting, comments. 2020-02-18 16:53:31 -05:00
Kattni Rembor
d5cdc1e327 Basically working on CLUE and PyBadge LC. 2020-02-16 21:38:17 -05:00
Renamed from adafruit_pybadger.py (Browse further)