Commit graph

217 commits

Author SHA1 Message Date
d15c90b87e
Add an asyncio example with a fancy precomputed qr code 2022-04-26 15:15:10 -05: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
foamyguy
b5c03fa79c change discord badge 2022-04-24 14:05:44 -05:00
evaherrada
5dc4b3f8da
Patch: Replaced discord badge image 2022-04-22 15:59:10 -04:00
Eva Herrada
de8add0963
Update .gitignore 2022-04-21 18:53:10 -04:00
Alec Delaney
3ec03ecb0a "Reformatted per new black version" 2022-03-29 18:16:31 -04:00
Kattni Rembor
3e822c3461 Update Black to latest.
Signed-off-by: Kattni Rembor <kattni@adafruit.com>
2022-03-28 18:11:41 -04:00
tekktrik
69a8889d87
Merge pull request #57 from tekktrik/doc/add-typing
Add type annotations
2022-02-20 12:25:15 -05: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
dherrada
b879a441d9 Fixed readthedocs build
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2022-02-15 11:56:08 -05:00
Alec Delaney
510d629189 Consolidate Documentation sections of README 2022-02-10 10:07:14 -05:00
dherrada
3492ff778d Updated docs link, updated python docs link, updated setup.py 2022-01-24 16:46:17 -05:00
dherrada
adb3b7c7a0 First part of patch
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2022-01-19 13:52:41 -05:00
foamyguy
e5e74f6b91
Merge pull request #56 from FoamyGuy/rename_mag_tag
rename mag_tag to magtag. Fix neopixel power pin handling
2021-12-14 17:24:25 -06: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
Kattni
dad4acf561
Merge pull request #54 from FoamyGuy/pybadge_lc_compatibility
Pybadge LC compatibility
2021-12-13 12:40:19 -05: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
foamyguy
75785b69ff update rtd py version 2021-11-23 13:15:53 -06:00
dherrada
857ed811e7 Updated readthedocs file
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2021-11-09 15:28:36 -05:00
Kattni
a7e3aa09ee
Merge pull request #48 from FoamyGuy/remove_gamepad_usage
Remove gamepad usage
2021-11-09 14:32:14 -05:00
foamyguy
cefca9d4c0 rerun CI 2021-11-09 13:11:29 -06:00
dherrada
8e12355409 Disabled unspecified-encoding pylint check
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2021-11-05 15:19:18 -04:00
Kattni
53ae7cd847
Merge pull request #51 from adafruit/patch-fix
Linted
2021-11-05 13:42:08 -04:00
dherrada
953991edad Linted 2021-11-05 03:16:35 -04:00
dherrada
ca9c763734 PATCH Pylint and readthedocs patch test
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2021-11-04 16:38:20 -04:00
foamyguy
f896e552ed add docs link to readme 2021-10-25 11:30:07 -05:00
dherrada
2b1330b142 Globally disabled consider-using-f-string pylint check
Signed-off-by: dherrada <dylan.herrada@adafruit.com>
2021-09-24 13:26:11 -04:00
foamyguy
994172e1df
Merge pull request #49 from liltux/tinkerd
update to show_business_card in pybadger_base.py
2021-08-13 16:57:20 -05:00
foamyguy
fa9247f564 remove .vscode and add it to gitignore 2021-08-13 16:41:50 -05: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