Hi All!
Impressed with the pico so far, but im stuggling to get the I2C2 bit working. Testing with the following code for an OLED, but iv tried other I2C devices to no avail on the second bus.
function onInit() {
I2C2.setup({scl:B10,sda:B3});
var g = require("SSD1306").connect(I2C2);
if(!g)
console.log("error initing oled");
else
console.log("init SUCCESS");
}
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi All!
Impressed with the pico so far, but im stuggling to get the I2C2 bit working. Testing with the following code for an OLED, but iv tried other I2C devices to no avail on the second bus.
any help appreciated