Giter Site home page Giter Site logo

io's Introduction

io's People

Contributors

kevba avatar kramer65 avatar orangetux avatar ysmilda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

vacovsky kramer65

io's Issues

SetEdge only works for a limited time

The edge triggers work fine for about ~9000 triggers, after that no more events get triggered.

This is caused by the file descriptor for the GPIO's value file becoming invalid, thus it can't be used to detect events anymore.

I suspect the file descriptor is invalid because the actual file object gets garbage collected. This means the easiest way to fix this issue is to keep a reference to the actual file in the watcher somewhere.

Update CI

The CI still uses old version of go to run the tests (1.8, 1.9). The 1.8 tests fail because some dependency is not backwards compatible to that version.

These should be updated to the latest version of go (1.11)

Add more GPIO pins

GPIO 20 till 15 are also supported but are not yet present in the mapping.

MCP320x does not create correct commands

The read12 function used by the MCP320x driver does not create the expected command.

if inputType == adc.SingleEnded {
		cmd = 1
}

The part of code responsible is shown above. Instead of adding a 1 to the cmd, it replaces the entire command. This causes some unexpected behavior when reading the voltage from the chip.

To fix this the 1 should be added after the first part of the command instead of replacing it entirely.

MCP4725 SetVoltage cannot set 10V

The output code is calculated like this : code := v * 4096 / m.vref. This is incorrect bacuase 10V gives a code of 4096 which is 13 bits long instead of the expected max of 4095.

The most simple fix is to change the calculation to this: code := v * 4095 / m.vref.

MAX581x SetVoltages sets wrong values for resolutions > 8

For example, setting 5 volt on a device with a resolution of 10 and a vref of 10 writes the following bytes: 0xff 0xc0. This is the same as setting 10 volt on a device with a resolution of 10 and a vref of 10.

This has not been caught in the test because for higher resolutions they on check the highest and lowest value, which appears to be correct.

This issue is most likely caused by the way the code is turned into the 2 data bytes.

Thank you very much

I just wanted to report that I tested your code on a Raspberry Pi, and it works beautifully.

Thank you very much, and keep up the good work!

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.