adafruit / Adafruit_CircuitPython_INA219

circuit python driver for INA219 current sensor
MIT License
26 stars 26 forks source link

AttributeError #27

Closed ame57 closed 3 years ago

ame57 commented 3 years ago

Hello! After installing the required libraries, I always get the following attribute error when runnin the example file:

i2c_bus = board.I2C()

AttributeError: module 'board' has no attribute 'I2C'

Any idea on how to solve it?Thank you veyr much!

ladyada commented 3 years ago

which board is it?

ame57 commented 3 years ago

I'm using either an Arduino Uno or Arduino Mega

ladyada commented 3 years ago

Ciruitpython isnt supported by those boards. please post up in the tech support forums of where you purchased your board, they can help you figure out what you have and get it running :)