foamyguy
436015ecdc
use new OnDiskBitmap API
2025-06-27 13:14:36 -05:00
foamyguy
6043a1fa3f
use ruff, correct homepage url in pyproject.toml
2025-05-21 11:11:09 -05:00
foamyguy
4fa8c96cc4
attempt new accelerometer init if first one fails
2025-04-01 09:52:52 -05:00
foamyguy
af60fede3d
change badgerbase.show to root_group
2024-03-24 20:51:05 -05:00
RetiredWizard
5752d3ec4a
Replace depreciated .show()
2023-11-03 17:50:57 -04:00
Alec Delaney
a42b315728
Update namedtuple type annotations
2022-12-01 00:32:08 -05:00
Alec Delaney
e684757d11
Fix pylint errors
2022-11-07 22:28:58 -05:00
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
foamyguy
86c4141c21
rename mag_tag to magtag. fix docs build for new name
2021-12-14 12:48:56 -06:00
foamyguy
5dd187aa77
rename mag_tag to magtag. Remove neopixel power pin handling from magtag example
2021-12-14 12:38:42 -06:00
foamyguy
2e6781ee73
remove unused variable i and use _ instead
2021-12-05 13:15:53 -06:00
foamyguy
c0abb195bf
attempt i2c lock 10 times at most
2021-12-05 12:44:00 -06:00
foamyguy
346e8d3542
check alternate address. code format
2021-12-05 10:34:50 -06:00
foamyguy
8f5fa0860d
check for accelerometer before initialising
2021-12-05 10:24:49 -06: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
24949962c7
fix docs build. fix pybadge button property
2021-07-24 21:20:42 -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
c62c646e13
add magtag to init
2020-11-15 14:14:29 -06:00
foamyguy
cac38e3374
changes needed in base for mag tag
2020-11-15 14:10:25 -06:00
foamyguy
4a885dc03f
fix filename in docstring, add magtag to readme
2020-11-15 14:00:06 -06:00
foamyguy
f8bcb205a2
working on magtag and example
2020-11-15 13:58:05 -06:00
foamyguy
c61bc37279
starting magtag support and example
2020-11-15 13:06:11 -06:00
David Glaude
cb54874dee
This should fix the adafruit_lsm6ds related issue
...
Not tested yet... WiP.
2020-08-23 23:20:29 +02:00