Git Product home page Git Product logo

zip_halo_clock's Introduction

Zip Halo HD Clock

RGB digital/analogue clock written in Micropython for the BBC Micro:bit

Picture of device working

Kitronik ZIP Halo HD for the BBC micro:bit

Setup

Download the latest hex file from the releases page and copy it to your micro:bit

Usage

Clock hands

  • Seconds - white
  • Minutes - green
  • Hours - cyan (AM) or blue (PM)

The "hands" act like the real hands of an analogue clock. The hour hand moves forward by one place every 12 minutes. When more than one hand is on the same space the lowest value hand takes precedence, so at 13:05:05 LED number 5 will be white, at 13:05:06 it will be green, and at at 13:06:00 it will be blue.

Menu

To enter the menu, press and hold buttons A and B for 2-3 seconds. Press button a to move to the next page, press (and hold) button b to make changes to the setting.

Page 1 - T

Turn on or off audible ticking.

Page 2 - H

Set the hour hand.

Page 3 - M

Set the minute hand.

Page 4 - S

Set the second hand.

Page 5

Exits menu and saves settings

Notes on the code

The micro:bit has limited resources, so the code has been minified in order to make it fit. This means that variable names are not especially descriptive. It also means that there is not enough space to add a menu option to set the brightness of the LEDs. This can be set by changing BRT to a value between 0 and 4.

More features could be added if the code was reweritten in C++ using Arduino, but because of a bug in the Adafruit NeoPixel library I was unable to get the NeoPixel library to work on pin P8. This has been rasied as an issue, so hopefully someone smarter than me can find the cause and implement a fix.

zip_halo_clock's People

Contributors

mattybigback avatar

Watchers

 avatar

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.