Giter Site home page Giter Site logo

nopdotcom / i2c_tiny_usb-on-little-wire Goto Github PK

View Code? Open in Web Editor NEW

This project forked from littlewire/little-wire

8.0 4.0 5.0 5.05 MB

Cut&paste of Till Harbaum's i2c_tiny_usb device for Linux into the LittleWire firmware tree.

Home Page: littlewire.cc

Makefile 1.02% C++ 1.06% C 41.34% Assembly 31.87% SourcePawn 14.47% PHP 10.24%

i2c_tiny_usb-on-little-wire's Introduction

Aside: Why isn't this project more active? Other than RC calibration stuff under investigation in #1, this software is feature-complete and has no other documented bugs. If you find problems, try to make fixes into a pull request, but in any case please document your frustration and/or what happened—or you'll be maintaining your fork forever.

i2c_tiny_usb on LittleWire

This is a cut&paste of Till Harbaum's i2c_tiny_usb device for Linux into the LittleWire firmware tree, forked from littlewire/Little-Wire. This port is useful because there has been a Linux i2c_tiny_usb kernel driver since ~2006.

i2c_tiny_usb requires a 12MHz crystal not present in LittleWire. The LW hardware uses an internal 16.5MHz system clock calibrated from USB timing instead. (I would not use the LittleWire hardware in places where temperature/clock drift was a concern. If you see timing problems, please add to your issue (and/or write PRs) to #1.)

Note that you will probably need to edit usbconfig.h to set proper vendor/device IDs. (I've received no response from Till Harbaum as to whether a compatible project could use the i2c_tiny_usb IDs. Take that fact as you will.)

It's possible to build a kernel driver for LittleWire directly, but the USB interrupt endpoint model complicates error handling.

See https://github.com/nopdotcom/i2c_tiny_usb-on-Little-Wire/wiki/BuildingOnLinux for an example of how to build this firmware.

i2c_tiny_usb-on-little-wire's People

Contributors

cpldcpu avatar gzip avatar hecko avatar hecko-thereg avatar kehribar avatar lnxbil avatar markusb avatar nielsendres avatar nopdotcom avatar omerk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

i2c_tiny_usb-on-little-wire's Issues

RC Calibration is off for some people?

From dasaki at https://forum.openwrt.org/viewtopic.php?pid=319315#p319315 :

I had problems detecting the an tiny RTC (DS1307) via the tiny-usb-i2c/LitteWire. After some trials it worked when I changed the clock calibration settings in main.c:

removing the "0.5" from line:

int         x, optimumDev, targetValue = (unsigned)(1499 * (double)F_CPU / 10.5e6 + 0.5);

to:

int         x, optimumDev, targetValue = (unsigned)(1499 * (double)F_CPU / 10.5e6 );

Hope it helps someone else.

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.