Most recent activity
-
-
Thank you so much for the responses! I am just now back at a computer to post this.
I just realized that these are 5v. I have two of the same screens and backpacks.I have checked the connection many time, and I just tried flipping the pins.
Here is my code.
var i2c = new I2C(); I2C1.setup({scl:D28, sda:D29}); var lcd = require("HD44780").connectI2C(I2C1); lcd.print("Hello World!");
I have tried with and without "var i2c = new I2C();"
When I run:
getPinMode(pin)
I get "input_pullup" for both pins. That doesn't seem right -
I feel like I am really missing something here. I have a 1602 display with an ic2 backpack. I am connecting it to a MDBT42Q Breakout, and using this doc: http://www.espruino.com/HD44780
I have tried different pins. I have also added pull up resistors from vcc (5v) to scl and sda
Here is the error I get. ...
>Uncaught InternalError: I2C Write Error 33281 at line 2 col 13 g|4,g|4,g,g]) ^ 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);return{write:a... ^ in function "h" called from line 2 col 15 g|4,g|4,g,g])}) ^ in function "connectI2C" called from line 2 col 45 var lcd = require("HD44780").connectI2C(I2C1); ^ Uncaught Error: Cannot read property 'print' of undefined at line 3 col 4 lcd.print("Hello World!"); ^
-
-
- 6 comments
- 1,094 views
-
Oh and thank you @MaBe You have helped me with every question I have posted!
-
Right. What I meant was that I thought I tried 0x3F for the address using hardware I2C (without var i2c = new I2C();).
I realized the var names were different when using i2c = new I2C(); and changed them. This resulted in no errors, but the screen did not work. This of course was because the address was wrong.