Python Serial On Pi Pico


Author Message
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 905
Posted: 07:06am 30 Dec 2021      

Thanks Curtis,

Yes it is I2C.
I bought the module from Core Electronics (in Aus.) and they supply the following Python code:

Piico Software.zip

This is what I can successfully run. It uses Pins GP08 & GP09 for SDA and SCL.
I'd dearly like to port that code to MMBASIC.

The snippet of code above is 'MAIN.PY' in the zip.
If I can get serial to work I hope to modify Main to write the data to an HC12.

(I can't see any way of getting their C API (I've looked for days). I wouldn't know how to use it either . . .).

Thanks again,

Andrew