frillip / averclock

Winter 2012/2013: Just an exercise in timers. Oh, it's a clock. It can be controlled via bluetooth for no reason.
http://frillip.com/
2 stars 0 forks source link

Set alarms via AT+ command #19

Open frillip opened 11 years ago

frillip commented 11 years ago

Include some sort of provision for setting/enabling/disabling alarms via AT+ commands.

Probably something like

AT+ALARM0EN        // Enable alarm0
AT+ALARM0SET124500 // Set alarm0 to 12:45:00
AT+ALARM0DIS       // Disable alarm0
AT+ALARM0          // Print alarm0 time and status
AT+ALARM           // Print all time and status for all alarms

3 alarms (alarm0/1/2) should be enough.

Will change current AT+ALARM code to AT+BUZZER

Will also need to increase command buffer sizes.

naggie commented 11 years ago

:+1:

frillip commented 11 years ago

I had a dream last night where I had implemented this. However I have forgotten the specifics. Maybe it's a sign?