I just tried it out on my pico (pardon the contrast, but the Hello World is there)
However, I could only get it to work with I2C2
If I use I2C1 b6/b7 I get this error:
Uncaught InternalError: Timeout on I2C Write Transmit Mode 2
at line 1 col 111
...|4,a|4,a,a,d,d,d|4,d|4,d,d])
^
in function "a" called from line 1 col 7
a(51,1),a(50,1),a(40,1),a(12,1),a(6,1),a(1,1),{write:a,clear...
^
in function "a" called from line 1 col 133
...,a|4,a,a,d,d,d|4,d|4,d,d])})
^
in function "connectI2C" called from line 1 col 807
...('HD44780').connectI2C(I2C1);lcd.print('Hello World!')
^
Execution Interrupted
Here's the code I used to test with I2C2:
I2C2.setup({scl:B10, sda:B3});
var lcd = require("HD44780").connectI2C(I2C2);
lcd.print("Hello World!");
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.
I just tried it out on my pico (pardon the contrast, but the Hello World is there)
However, I could only get it to work with I2C2
If I use I2C1 b6/b7 I get this error:
Here's the code I used to test with I2C2:
1 Attachment