Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 - Lots of new functionality & bug fixes thanks to Thomas Winischhofer (A10001986) #16

Merged
merged 38 commits into from
Sep 5, 2022

Conversation

CircuitSetup
Copy link
Owner

Update to v2 of software. Includes a lot of new features and bug fixes, including:

New Functionality:

  • Added alarm functionality (enable by holding down "1", disable by holding "2")
  • 24 hour mode added
  • New Keypad menu for adjusting various settings
  • Configurable WiFi connection timeouts and retries
  • Return from Time Travel (hold "9" for 2 seconds)
  • Support for time zones and automatic DST
  • "present time" now functions as a clock (not stale) after time travel
  • Added incorrect date sound
  • Selectable "persistent" time travel mode (any changed dates are stored in memory upon reset, otherwise they will rotate preset times from the movie, and display the real time on reset)
  • Added night mode (enable by holding "4", disable by holding "5")
  • An SD card can now be inserted so custom sounds are played
  • Added ability to trigger a time travel event (pull io14 low)
  • Added "fake power on" and off facility (TCD will boot, setup WiFi, sync time with NTP, but not start displays until an active-low button is pressed connected to io13)
  • Show "BATT" during booting if RTC battery is depleted and needs to be changed
  • Sounds cleaned up, volume normalized, and updated

Bug fixes:

  • More stable sound playback
  • Fix for flakey i2c connection to RTC (check data and retry)
  • Fix "animation" (ie. month displayed a tad delayed)
  • Integrate a modified Keypad_I2C into the project in order to fix the "ghost" key presses
  • After a time travel, entering a new date now works correctly

- Return from Time Travel (hold "9" for 2 seconds)
- "present time" is a clock (not stale) after time travel
- New Keypad menu for adjusting various settings
- Now uses time zones, automatic DST, instead of offset
- Fixed "month-off-by-one" bug, and others
- More stable WiFi connections at startup
- Added incorrect date sound
- Add NET-WRK keypad menu item to show IP address
- Add alarm function
- Add 24-hour mode for clocks
- Add keypad shortcuts and visual indicator for alarm on/off
- Added night mode; enabled by holding "4", disabled by holding "5"
- Night mode now also reduces sound volume
- Fix autoInterval array to match indices 0-5
- Add "fake power on" facility
- Import and patch Keypad_I2C to tackle "ghost keys"
- Added SD-Card support for audio files; A-Car display enhanced
- New sound files, all re-done
- Added External Time-Travel trigger
- New time logic; Independence from NTP; Alarm base configurable
Fix fake power off if time-rot-interval is non-zero
Major cleanup
- Added some error checking around alarm config loading
- Show "BATT" during booting if RTC battery is depleted and needs to be changed
- Pause autoInterval-cycling when user entered a valid destination time
and/or initiated a time travel
- Fix missing return value in loadAlarm
...so there isn't a tiny delay before they load
and make sure latest versions are loaded
Get rid of compiler warnings
Fix bug with saving settings in the web interface before connecting to WiFi
@realA10001986
Copy link
Contributor

"fake power on" is actually "fake power", you need a switch, not a button, since you can fake-power the device on and off.

The time travel via io14 is, however, really a button, needs to be pulled down for 200ms.

- Better volume control (remove noise from pot values)
- Volume knob is now polled during play back, allowing changes while sound is playing
- Destination time/date can now be entered in mmddyyyy, mmddyyyyhhmm or hhmm  format.
- Sound file "hour.mp3" is played hourly on the hour, if the file exists on the SD card.
- Holding "3" or "6" plays sound files "key3.mp3"/"key6.mp3" if these files exist on the SD card
- Audio: Fix pot resolution, less logging
- WiFi status in AP mode added; proper day check
- Remove TWPRIVATE
@CircuitSetup
Copy link
Owner Author

More New Functionality:

  • Time travel sequence now longer and includes display "noise"
  • Added intro with sound as the displays show "Back to the Future" - option to turn on/off
  • Sound file "hour.mp3" is played hourly on the hour, if the file exists on the SD card
  • Holding "3" or "6" plays sound files "key3.mp3"/"key6.mp3" if these files exist on the SD card
  • Better volume control - ability to specify volume via software or hardware
  • Display connection status and IP address in display settings menu

@CircuitSetup CircuitSetup merged commit 5dd80aa into master Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants