Commit graph

61 commits

Author SHA1 Message Date
foamyguy
c41e65bdeb lower default volume limit, update examples, change warning message 2025-08-27 10:46:26 -05:00
foamyguy
f2325f3811 lower default volume 2025-08-27 10:42:40 -05:00
foamyguy
5eabd3d955 Merge branch 'refs/heads/main' into volume_api
# Conflicts:
#	requirements.txt
2025-08-27 10:33:27 -05:00
foamyguy
3f33c18ddf fix _audio_output initialization error 2025-08-27 10:32:40 -05:00
foamyguy
9259a09330
Merge pull request #14 from mikeysklar/ntp-helper
Some checks failed
Build CI / test (push) Has been cancelled
Fruit Jam NTP module
2025-08-25 18:57:36 -05:00
Mikey Sklar
cb5d1db622 settings.toml float quote, attribution, duplicate last_exc setting
settings.toml example with double quotes for floating point values

mikeysklar attribution

drop duplicate last_exc
2025-08-25 16:06:37 -07:00
Mikey Sklar
d2ae05eaed helpers for sync_time
ruff was getting upset about too many branches
2025-08-25 14:47:56 -07:00
Mikey Sklar
2e19356d9a ntp constructor dup / retry logic
ntp constructor removed.

dup rtc import had already been removed.

new NTP_RETRIES and NTP_DELAY_S user configurable settings.

```
NTP_RETRIES   = 8     # number of NTP fetch attempts
NTP_DELAY_S   = 1.0   # delay between attempts (seconds)
```

updated settings.toml example

updated docstring for sync_time with new NTP* configurables
2025-08-25 13:19:56 -07:00
Mikey Sklar
96e4575d2e retry logic for ETIMEOUT 2025-08-23 18:15:57 -07:00
Mikey Sklar
75e5fb7ac2 Update __init__.py
blank line missing.
2025-08-22 18:55:00 -07:00
Mikey Sklar
6b86bc95a6 rtc lib mock add 2025-08-22 18:49:03 -07:00
Mikey Sklar
fc388c5ccb mock imports / requirements
ntp and connection_manager libs
2025-08-22 18:37:32 -07:00
Mikey Sklar
d1d0bb0932 refactored to use fruitjam network module
Refactored and "works for me". I'll ask @b-blake to confirm functionality as well.

	•	Added Network.sync_time() method in network.py
	•	Uses adafruit_ntp + adafruit_connection_manager.
	•	Reads optional NTP_* keys from settings.toml.
	•	Sets rtc.RTC().datetime
	•	Added example examples/fruitjam_time_sync.py (sync once, print localtime).
	•	Added example examples/fruitjam_ntp_settings.toml
2025-08-22 18:30:11 -07:00
Mikey Sklar
544adaa447 ntp module
helper code to get time sync with minimal fuss on the Fruit Jam.
2025-08-21 17:41:36 -07:00
foamyguy
eb35d69e1b update printed volume label 2025-08-20 07:54:10 -05:00
foamyguy
4998356604 add synthio example. 2025-08-19 16:31:11 -05:00
foamyguy
a722ba1835 convenience accessors for volume and audio_output properties on main fruit_jam object. 2025-08-19 16:10:41 -05:00
foamyguy
9825076bcf update audio examples to use new volume API. 2025-08-19 16:07:54 -05:00
foamyguy
c332f74892 add simpleio to reqs 2025-08-19 11:32:11 -05:00
foamyguy
f35068b0d3 audio volume and interface APIs 2025-08-19 11:31:14 -05:00
foamyguy
a0327ac8e6
Merge pull request #12 from mikeysklar/headphone-speaker
Some checks failed
Build CI / test (push) Has been cancelled
headphone vs speaker usage
2025-08-14 16:55:05 -05:00
foamyguy
b8b1770da5 use .license files 2025-08-14 16:50:14 -05:00
Mikey Sklar
09af721cf7 ruff whitespace 2025-08-14 13:06:25 -07:00
Mikey Sklar
456851aabf wav file reuse 2025-08-14 13:04:19 -07:00
Mikey Sklar
e95edb3e3d license files for wavs 2025-08-14 12:55:17 -07:00
Mikey Sklar
0e0ab5431f headphone vs speaker usage
Short examples showing how to set volume and play WAV files for both headphone 3.5mm jack and mini speaker.
2025-08-14 12:32:14 -07:00
foamyguy
3aebe8dc9d
Merge pull request #11 from adafruit/TheKitty-patch-1
Some checks failed
Build CI / test (push) Has been cancelled
Update network.py for Issue #7
2025-08-14 10:46:16 -05:00
Anne Barela
d883e687bb
Update network.py
Delete blank line
2025-08-14 11:11:08 -04:00
Anne Barela
f3e13ff5c7
Update network.py per comment
Remove debug print from development
2025-08-14 11:04:54 -04:00
Anne Barela
153b177a3f
Update network.py for Issue #7
Code prints the status_neopixel to stdout when it should only, perhaps, do that on debug.  Fixes #7
2025-08-14 09:39:11 -04:00
foamyguy
9175c448f6
Merge pull request #9 from relic-se/request_display_config-default
Some checks failed
Build CI / test (push) Has been cancelled
Automatically configure display size based on `CIRCUITPY_DISPLAY_WIDTH`
2025-08-12 15:42:27 -05:00
Cooper Dalrymple
6224c6510d Update request_display_config docstring 2025-08-12 14:44:18 -05:00
foamyguy
71dbc2ae38
Merge pull request #8 from relic-se/any_button_pressed-fix
Some checks failed
Build CI / test (push) Has been cancelled
Invert `any_button_pressed` logic for pull-up
2025-08-12 14:12:23 -05:00
Cooper Dalrymple
3cd3c6e596 Fix formatting 2025-08-12 14:08:31 -05:00
Cooper Dalrymple
bfc6140e6d Optimize display height assignment 2025-08-12 13:59:59 -05:00
Cooper Dalrymple
f5b3367c2b Automatically configure display size based on CIRCUITPY_DISPLAY_WIDTH 2025-08-12 13:50:01 -05:00
Cooper Dalrymple
153e078870 Invert any_button_pressed logic for pull-up 2025-08-06 14:49:02 -05:00
foamyguy
17d3868ed6
Merge pull request #6 from FoamyGuy/more_portalbase_stuff
Some checks failed
Build CI / test (push) Has been cancelled
More portalbase APIs, fixes for status_led and caption text
2025-07-24 11:24:41 -05:00
foamyguy
2a5d7e81e7 fix docs build 2025-07-24 10:05:15 -05:00
foamyguy
5932bf058c add sd_check(), play_file(), stop_play(), show_QR(), hide_QR() portalbase APIs. Fix for status_led pin already in use. Fix for caption text is None 2025-07-24 09:01:55 -05:00
foamyguy
7de2ec3d14
Merge pull request #5 from FoamyGuy/implement_portalbase
Some checks failed
Build CI / test (push) Has been cancelled
Adding PortalBase support
2025-07-21 16:38:25 -05:00
foamyguy
666b515b80 code format 2025-07-21 16:36:23 -05:00
foamyguy
410c467492 add terminalio to mock docs list 2025-07-21 16:32:56 -05:00
foamyguy
cc4a293e22 update product links and copyright 2025-07-21 15:53:24 -05:00
foamyguy
6043362d3a extending portalbase, add example that uses network fetch 2025-07-21 15:51:14 -05:00
Anne Barela
76d4f22524
Merge pull request #4 from FoamyGuy/color_depth_support
Some checks failed
Build CI / test (push) Has been cancelled
support requesting color depth
2025-07-09 17:38:44 -04:00
foamyguy
332fe1e871 support requesting color depth. Dont re-init display if already in requested config. Update get_config docstring and try/except to account for no display initialized. 2025-07-09 14:23:27 -05:00
foamyguy
8d3f1ab83a
Merge pull request #3 from adafruit/TheKitty-patch-1
Update peripherals.py to include a new get_display_config function
2025-07-09 14:05:26 -05:00
foamyguy
d774cd952e access display and framebuffer properties for values, format code. 2025-07-09 13:58:19 -05:00
Anne Barela
9a34a9d5b0
Update peripherals.py 2025-07-09 10:26:23 -04:00