Git Product home page Git Product logo

rectangle-scrollphathd-watch's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.