Closed Fra4prg closed 3 years ago
Looks like a well written mod.
you forgot to upload mp3files.h
I "fixed" it but am not sure if I got the order of the sounds right.
Bill Dudley
This email is free of malware because I run Linux.
On Sat, Jan 9, 2021 at 9:01 AM Fra4prg notifications@github.com wrote:
I made some additions to the stop watch and I would appreciate if you could merge this into your project. All changes are marked with the comment // Fra4prg:
Description of my changes: Added "Smart Sound" option. "Smart Sound" enables you to hear the number of minutes without having to look on the display. The idea behind this is that human brain can identify the number of 3 beeps as triple without counting them even if they are very short and fast. So up to 3 beeps are played slowly and preceeding triples are faster. For every 10 minutes a sweep sound is preceeding. A new top left button switches modes between [no sound] - [vibration + sound] - [only sound]
Some examples to show the sequence: Minute 1: C5 Minute 2: C5-E5 Minute 3: C5-E5-G5 Minute 4: triple - C5 Minute 5: triple - C5-E5 ... Minute 9: triple - triple - C5-E5-G5 Minute 10: sweep ... Minute 18: sweep - triple - triple - C5-E5 and so on...
As you can see this works well for short times up to 10 minutes then it gets weird... The idea came up when I was flying model helicopters where I had to control the flight time due to small batteries and must not loose visual contact to my heli model. So I made a small Arduino based timer called HeliTimer. But this function fits perfect to the T-watch :-)
Regards Frank
You can view, comment on, or merge this pull request online at:
https://github.com/wfdudley/T-watch-2020/pull/28 Commit Summary
- Added Sound option to appStopWatch
File Changes
- M appStopWatch.cpp https://github.com/wfdudley/T-watch-2020/pull/28/files#diff-2d59edbdfcb67bf2452230d4c9ddf712227a1119cc73d0a0872646599cc76a6a (110)
- A sounds/C5_L.h https://github.com/wfdudley/T-watch-2020/pull/28/files#diff-8d5b564aa0efc099185587155ce65769f6673952431929f51ab71c64f20f9de5 (224)
- A sounds/E5_L.h https://github.com/wfdudley/T-watch-2020/pull/28/files#diff-814a3ad5034ecfbd5766aa18feb09608f385cc8dbd27ad2801d485cb7c9f0775 (268)
- A sounds/G5_L.h https://github.com/wfdudley/T-watch-2020/pull/28/files#diff-94c0aaa9bf3ebfde9c0557b1fb6edb70b0663647f94800d5d925e2f8f7d065ba (255)
- A sounds/SWEEP.h https://github.com/wfdudley/T-watch-2020/pull/28/files#diff-b78337d9325951a6d7e817e7fbf672379f0fb8741cf64bb8caf0174d4217d2d0 (524)
- A sounds/TRIPLE.h https://github.com/wfdudley/T-watch-2020/pull/28/files#diff-09f6cc373313c9d43d7caac54e2618b392bd148dcf8bda33dfe7ba74b94d73a2 (403)
Patch Links:
- https://github.com/wfdudley/T-watch-2020/pull/28.patch
- https://github.com/wfdudley/T-watch-2020/pull/28.diff
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wfdudley/T-watch-2020/pull/28, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4VYU27YIVHCNNOVO56CFDSZBOU3ANCNFSM4V3TN3WA .
Oops, sorry. Let me check that tomorrow.
Frank
You don't need to do a pull request if my version has the sounds in the same order that yours does.
For that matter, you could just email me the diffs if I do have the sounds out of order.
Bill Dudley
This email is free of malware because I run Linux.
On Wed, Jan 13, 2021 at 4:05 PM Fra4prg notifications@github.com wrote:
Oops, sorry. Let me check that tomorrow.
Frank
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/wfdudley/T-watch-2020/pull/28#issuecomment-759739221, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4VYU6SZZTJMYHJJEJIRU3SZYDKVANCNFSM4V3TN3WA .
// mp3's of beeps of various frequencies // W.F.Dudley Jr.
const unsigned char* const beep_array[] PROGMEM = { beep182_mp3, beep__220_mp3, beep279_mp3, beep303_mp3, beep__473_mp3, beep576_mp3, beep_1050_mp3, beep_1050L_mp3, beep_chirp1_mp3, C5_L_mp3, E5_L_mp3, G5_L_mp3, TRIPLE_mp3, SWEEP_mp3 };
again I forgot to sign:
Regards Frank
Frank,
OK, done. Change is in github.
I also added a new routine for writing arbitrary text in a "button", and used it for the "silent", "vib+beep", "beep" legends in the "mode" button
Thanks, Bill Dudley
This email is free of malware because I run Linux.
On Thu, Jan 14, 2021 at 12:37 PM Fra4prg notifications@github.com wrote:
again I forgot to sign:
Regards Frank
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/wfdudley/T-watch-2020/pull/28#issuecomment-760350293, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4VYUY7JTQACM6MOBBI2L3SZ4TW3ANCNFSM4V3TN3WA .
I made some additions to the stop watch and I would appreciate if you could merge this into your project. All changes are marked with the comment // Fra4prg:
Description of my changes: Added "Smart Sound" option. "Smart Sound" enables you to hear the number of minutes without having to look on the display. The idea behind this is that human brain can identify the number of 3 beeps as triple without counting them even if they are very short and fast. So up to 3 beeps are played slowly and preceeding triples are faster. For every 10 minutes a sweep sound is preceeding. A new top left button switches modes between [no sound] - [vibration + sound] - [only sound]
Some examples to show the sequence: Minute 1: C5 Minute 2: C5-E5 Minute 3: C5-E5-G5 Minute 4: triple - C5 Minute 5: triple - C5-E5 ... Minute 9: triple - triple - C5-E5-G5 Minute 10: sweep ... Minute 18: sweep - triple - triple - C5-E5 and so on...
As you can see this works well for short times up to 10 minutes then it gets weird... The idea came up when I was flying model helicopters where I had to control the flight time due to small batteries and must not loose visual contact to my heli model. So I made a small Arduino based timer called HeliTimer. But this function fits perfect to the T-watch :-)
Regards Frank