Using Blinka for with Micropython in a Raspberry Pi Pico
See original GitHub issueI was trying to follow learning guide https://learn.adafruit.com/circuitpython-libraries-on-micropython-using-the-raspberry-pi-pico
Hardware
MicroPython v1.15 on 2021-04-18; Raspberry Pi Pico with RP2040
However I Used a different Sensor I used an Adafruit ADT7410 I2C Temperature Sensor with the latest Blinka 6.9.1 and plataform detect 3.13.1
Results
While reading the sensor the following I got the following error message:
Traceback (most recent call last):
File "<stdin>", line 10, in <module>
File "/lib/adafruit_adt7410.py", line 94, in __init__
File "/lib/adafruit_adt7410.py", line 130, in _read_register
File "/lib/adafruit_bus_device/i2c_device.py", line 125, in write_then_readinto
File "/lib/busio.py", line 147, in writeto_then_readfrom
File "/lib/adafruit_blinka/microcontroller/rp2040/i2c.py", line 55, in writeto_then_readfrom
AttributeError: 'I2C' object has no attribute 'writeto_then_readfrom'
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
CircuitPython Libraries on MicroPython using the ...
Blinka, PlatformDetect, and libraries can be installed in either the root of the Pico or you can create a lib folder and copy...
Read more >Blink the onboard LED
In this step, you will create a MicroPython program to blink the onboard LED on and off in a loop. Click in the...
Read more >Mix Both MicroPython & CircuitPython Code In The ... - YouTube
We walk you through how to use your favourite circuitPython code in a ... onto the Raspberry Pi Pico 01:35 Installing Thonny using...
Read more >Raspberry Pi Pico w/ Blinka in MicroPython: incompatible . ...
Specifically, right now, Im trying to use the Adafruit IS31FL3741 RGB Matrix board with the adafruit_is31fl3741 library from the CircuitPython ...
Read more >Confused about circuit python, blinka and micro python
Python is what is usually used on a Raspberry Pi. Adafruit 'blinka' adds libraries to Python to allow it to do whatever it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s actually a good one because it’s failing and it’s a problem I can reproduce.
I’m working on this. I’ve added this on my board, but it’s somewhat consistently returning the incorrect value for the ID. According to docs and code, it should return 0xC8, but I’m getting stuff like 0x90, 0x98, 0xA0, 0xA8, and 0xB0. The characters returned right before and after are consistently always 0x0A and 0x80. I’ve tried adding delays, but that didn’t help.
I’ll try different speeds to see if that makes a difference. I might need to hook up a saleae to see if it’s actually returning those values. Also, it may be related to https://github.com/adafruit/Adafruit_CircuitPython_ADT7410/issues/4.