alarm_clock

举报

发布于:2019-10-28

更新于:2019-10-28

19

2719

0M/ 0.2M

作品介绍:

This application makes Codey-Rocky a fun alarm clock. Codey shows time in 24 hour format. When alarm is triggered, Codey would move around a bit and make noises until any button on its face is pressed. The alarm time could be adjusted from Codey but every time it starts the alarm time is reset to the default time defined in the code: alarm_time = { 'hr': 6, 'min': 30 }

操作说明:

Requirements The clock would need Wi-Fi connection to set correct time at the start. Configuration: - Open the project - Change WIFI_ID and WIFI_PASS to match you Wi-Fi ID and password - Upload the project to Codey When Codey starts it tries to connect to your Wi-Fi to get current time from the Internet. Codey tries to figure out your time zone using your IP address. During the start-up Codey shows the following on the screen: - "stRt" message until it's connected to Wi-Fi. - "wifi" while it receives current time from the Internet. - After the start-up procedures are finished, Codey displays information depending on the position of the control wheel on its left side. Rotate it all the way up to see the clock. - If Codey stuck with "stRt" or "wifi" on the screen... well, something didn't go right. You can try to restart it or troubleshoot the issue using the source code. The clock has four screen modes: - Clock - Setting hours for the alarm - Setting minutes for the alarm To switch between the screens, rotate the wheel on the left side of Codey (it's just below its ear). "Clock" screen shows time in 24 hour format. To see the alarm time, press button A. If alarm is enabled, you'll see the alarm time. If alarm is turned of, the screen would show `OFF`. While holding button A, you can press button B to disable or enable the alarm. Button B pressed alone, would show battery charge percentage. Button C would demonstrate the alarm routine. To stop the routing, press A or B. In this demo mode button C would get disabled while alarm is going off. "Setting hours for the alarm" screen shows hours for the alarm like this `7:H`. `H` indicates that you are changing hours. To change the hours, use A and B buttons. Button C is disabled. "Setting minutes for the alarm" screen shows minutes for the alarm like this M:30. M indicates that you are changing minutes. To change the minutes, use A and B buttons. Button C is disabled.

收藏