Skip to content

A 12 base LED watch using raspberry pi zero and Pimoroni Scroll pHAT HD

Notifications You must be signed in to change notification settings

plusmnt/rectangle-scrollphathd-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scroll pHAT HD Rectangle Watch

LED Rectangle Watch

This is a base 12 watch using raspberry pi zero and Pimoroni Scroll pHAT HD.

Hardware

Optional

Power

With USB connection, it use 0.05A to 0.08A at 4.92V.

Time

  • Hours: converted to 12 hour, hour starts from 0 to 11.
  • Minutes: divided by 5 then add 0.5 and convert the number to an integer.
  • Seconds: divided by 5 then add 0.5 and convert the number to an integer.
  • If you have problem with NTP, port block or ISP block, use HTTP Time protocol.

Example of time:

  • 12:45:25 = 12:9:5
  • 19:29:33 = 7:6:7

Setup

Code

get_loc function takes x starting point and the number needed to be shown, return the location of the dot. show_time function to create 3 dim rectangle and call get_loc to get location of hour,minute and second.

Reference

About

A 12 base LED watch using raspberry pi zero and Pimoroni Scroll pHAT HD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages