Giter Club home page Giter Club logo

precisionclockmkii's Introduction

Precision Clock Mk II

Code for the ATtiny2313 used in both the Precision Clock Mk II½ and its predecessor.

The code is compatible with the ATiny2313, ATtiny2313A and ATtiny4313. The only difference between the chips is the amount of memory, and the code is short enough to fit onto the smaller chip. There is a variable in the makefile to set the chip, but it's only really needed to stop avrdude complaining about the chip signature.

Timezones and daylight saving is now configured by compile-time definitions. The makefile handles this seamlessly, but if you're not interested in setting up the environment there are pre-built hex files for all locations in the build folder. I will expand the list of generated hex files as needed. If you want to add a different timezone, the format should be quite easy to understand, feel free to submit a pull request.

To configure the build environment you only need avrasm2.exe and make. On linux I run avrasm2 under wine, I have a script in /usr/bin that looks like

#!/bin/sh
wine ~/avrasm/avrasm2.exe -I ~/avrasm $*

The makefile greps through the source code for the timezone definitions, and builds each one using a pattern. You can then flash a specific timezone by typing for instance

make flash-us_central

make flash defaults to London.

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.