Coder Social home page Coder Social logo

circuitpython_ina3221's Issues

Question: how to install on Raspberry Pi

I know the readme says its not available via PyPI. How would I go about installing this library on a Raspberry Pi? Can I download the release zip and use pip3 to install somehow?

I tried the following but it didn't work so must be a bit more involved to install.

$ sudo pip3 install barbudor_ina3221.precompiled.binaries.zip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing ./barbudor_ina3221.precompiled.binaries.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3.7/tokenize.py", line 447, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-rn99zd6q/setup.py'

Add method to check data ready flag

I added this method to my class that uses your libray using self.ina3221 as the instance of your library. But this could be included in your library.

This aids waiting for available data.

def ina3221_CRF(self): # get conv_ready_flag regvalue = self.ina3221.read(ina.C_REG_MASK_ENABLE) value = (regvalue & ina.C_CONV_READY_FLAG) return (value==1)

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.