Commit graph

39 commits

Author SHA1 Message Date
foamyguy
b4f18f7d8f use MP3Decoder.open() 2025-08-28 12:59:41 -05:00
foamyguy
e8a2a77ac6 Merge branch 'refs/heads/main' into play_mp3_file 2025-08-28 12:51:35 -05:00
foamyguy
7682a56c51 clarify wording in the volume warning 2025-08-28 08:44:48 -05:00
foamyguy
6f0204bf34 Merge remote-tracking branch 'foamyguy/volume_api' into volume_api 2025-08-28 08:40:59 -05:00
foamyguy
733ef1b925 use adafruit_simplemath instead of simpleio. Use multi-line string for warning message 2025-08-28 08:40:51 -05:00
foamyguy
45d7cc1232
simplified condition logic
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2025-08-27 18:09:26 -05:00
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
1f46569c1d play_mp3_file() function 2025-08-25 18:50:43 -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
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
a722ba1835 convenience accessors for volume and audio_output properties on main fruit_jam object. 2025-08-19 16:10:41 -05:00
foamyguy
f35068b0d3 audio volume and interface APIs 2025-08-19 11:31:14 -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
Cooper Dalrymple
6224c6510d Update request_display_config docstring 2025-08-12 14:44:18 -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
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
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
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
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
foamyguy
a983b6a93f format 2025-07-01 12:11:45 -05:00
foamyguy
58926b5549 end of file newlines 2025-07-01 12:08:20 -05:00
foamyguy
be636dde50 use explicit properties instead of get_attr 2025-07-01 12:03:30 -05:00
foamyguy
f52fdd17fc implementing buttons, neopixels, and audio init 2025-07-01 12:00:05 -05:00
foamyguy
bfe28d04cd initial code 2025-05-02 11:45:39 -05:00