Music stripped. Alarm changed (it's now merged with the special effects function, after all that's what it is).
Supposed working of the alarm (haven't had time to test it at all):
Upon alarm time:
- five half-second beeps (the same 1900 Hz as used for the button bips) with half-second silence. All LEDs ON while beep sounds, normal clock display in between.
- five seconds pause
- this repeats for up to 20 minutes after which it switches off the alarm, unless user presses the alarm button.
Short press: snooze mode.
Clock display remains on (even if the lights switch is set to OFF). You have to wake up so good to see the time.
Then after five minutes the alarm restarts as above.
Long press: alarm off (no more snooze). Display will follow the lights on/off switch again.
Hourly effects are not played if the alarm plays. No delaying of that, the code doesn't even allow for this. Hourly effects are triggered when the second is 0, just like the alarm, but the alarm is checked for first. So unless you manage to switch off the alarm within that first second the hourly effects don't play at all.
As it's set to be special effect, this of course can quite easily be changed.
Hi. Here is the test results. Unfortunately, there are still some outstanding issues. I hope you can clear them. Please read them carefully. Most of them are minor issues:
1.
There seems to be a major issue with the alarm. I couldn't get it to work under any circumstance. When the alarm time comes, all the LEDs light up and stay that way. And the buzzer tries to make 1 or 2 very bogged down noises or clicks, (barely noticeable) and then there is no sound from the buzzer. Once this happens, all 13 LEDs just stay on and hour/min buttons do nothing. even long presses. The only buttons that work under this condition is longpress buttonAlarm which animates alarm switch on and alarm switch off animations, but then the leds go back on, all 13.
The others are minor, may be, cosmetic issues:
2. Either you misunderstood or I did not explain properly. When you longPress buttonAlarm to switch alarm on, the animation I want is rows filling up, which it does fine, and then only 1 long flash. Please change that to make it happen. currently, it is 1 short, 1 long. I want rows filling up, and then only 1 long flash.
3. The animation for alarm switching off, is also slightly off from what I want. Currently, it is 1 long, 1, short, and rows filling down. I want only 1 short, and then rows filling down.
4. When you are in clock time setting mode, and if you set the time to an even hour and exit to normal display, the specialEffects() plays. Would it be possible to make it so that specialEffects() plays only if even hour is reached naturally?
5. The flashing has been removed for when entering Setting Mode. That is fine. The fast advance of hour/minute buttons works fine, but probably it is because of this that when you long press hour/minute together and first enter setting mode (which is alarm setting first), sometimes alarm minutes advances even though you don't want to change alarm time. Say, you only want to move over to clock setting.
But the long press of hour/minute buttons, affects the alarm value when you first enter alarm setting mode. Initially flashing when entering setting mode did not allow that to happen. so it is gone and the long presses are being registered as attempt to advance minutes on alarm. So, may be introduce a very small delay when you first enter setting mode? to avoid unintentional registering of button press? or would that introduce more issues than it is worth? What is the nicest way to do that without flashes upon enterence to setting mode? I don't want flash there.
6. For alarm sound, you are implementing:
- five half-second beeps (the same 1900 Hz as used for the button bips) with half-second silence. All LEDs ON while beep sounds, normal clock display in between.
- five seconds pause
- this repeats for up to 20 minutes after which it switches off the alarm, unless user presses the alarm button.
But instead of this, can you do:
A shorter beep and a longer beep. So, a short half-second beep, with half-second silence, and a longer, 1-second beep. Then the main pause of whatever feels right.
So, beep, beeeeeeep; pause; beep, Beeeeep; pause; beep,beeeeeep. Something like that . That would be best. I hope it is not too late for this.
Cheers.