Giter Site home page Giter Site logo

Comments (5)

chrisb2 avatar chrisb2 commented on June 5, 2024

from pi_ina219.

JennaSys avatar JennaSys commented on June 5, 2024

PR submitted.

from pi_ina219.

chrisb2 avatar chrisb2 commented on June 5, 2024

PR merged and new 1.3.0 release created and uploaded to PyPi, see https://pypi.org/project/pi-ina219/1.3.0/

thanks,
Chris

from pi_ina219.

rrnicolay avatar rrnicolay commented on June 5, 2024

I can't stop the module from printing debug messages. What can I do?
My code:

`import logging
from ina219 import INA219, DeviceRangeError
logging.getLogger('ina219').setLevel(logging.ERROR)

class CurrentReader():
SHUNT_OHMS = 0.1
MAX_EXPECTED_AMPS = 3.0

def init(self):
self.ina = INA219(self.SHUNT_OHMS, self.MAX_EXPECTED_AMPS, busnum=1, log_level=logging.ERROR)`

from pi_ina219.

chrisb2 avatar chrisb2 commented on June 5, 2024

It's not good practice to comment on a closed issue, please open a new one.

Thanks
Chris

from pi_ina219.

Related Issues (20)

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.