Thanks for your reply. I found the issue. In the __init__ I2C speed was set for 10000 pbs so reducing it to 1000 it solved the problem:-)
Thanks for your support and reply
Search found 2 matches
- Fri Oct 25, 2019 6:36 pm
- Forum: MicroPython pyboard
- Topic: HMC5883L Magnetometer
- Replies: 10
- Views: 13863
- Sun Oct 20, 2019 10:45 am
- Forum: MicroPython pyboard
- Topic: HMC5883L Magnetometer
- Replies: 10
- Views: 13863
Re: HMC5883L Magnetometer
Hi There. Im quite new to MicroPython but got it running on a ESP8266 D1 board. When I load the script in this thread I get a strange error >>> sensor = HMC5883L(scl=4, sda=5) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "hmc5883l.py", line 30, in __init__ OSError: [Er...