AttributeError: 'MicroBitI2C' object has no attribute 'scan'
Posted: Sat Sep 29, 2018 1:21 pm
I'm just trying to get started with i2c on the micro:bit. I'm using Mu and have entered this simple program...
from microbit import *
print(i2c.scan())
And I'm getting this error....
Traceback (most recent call last):
File "__main__", line 3, in <module>
AttributeError: 'MicroBitI2C' object has no attribute 'scan'
MicroPython v1.7-9-gbe020eb on 2016-04-18; micro:bit with nRF51822
Type "help()" for more information.
>>>
Help please!!
from microbit import *
print(i2c.scan())
And I'm getting this error....
Traceback (most recent call last):
File "__main__", line 3, in <module>
AttributeError: 'MicroBitI2C' object has no attribute 'scan'
MicroPython v1.7-9-gbe020eb on 2016-04-18; micro:bit with nRF51822
Type "help()" for more information.
>>>
Help please!!