-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Characters (useChar) not working #1478
Comments
I've narrowed it down to the createChar function, specifically the
line in the lcd.js file. If I remove this line, it doesn't print the character, but I can write other characters to the screen, whereas with that line I cannot write anything to the screen until I reset and remove the Again, custom characters works fine for me in the regular arduino IDE, but something goes amiss for me in johnny-five. Does anyone have any idea as to why this might be happening? Any help is appreciated! |
Sorry for the delay in responding here. I'm not sure why this would stop working—no code has changed in @fivdi is something of an expert with |
After invoking var five = require("johnny-five");
var board = new five.Board();
board.on("ready", function() {
let lcd = new five.LCD({ pins: [2, 3, 4, 5, 6, 7]});
lcd.useChar("heart")
lcd.cursor(0, 0); // <=== Add this to get it to work
lcd.print("test :heart: test");
}) Further details: Invoking To display characters on the LCD the characters need to be written to the DDRAM. |
I cannot believe the problem was that simple. Thank you so much, this seems to work! |
Thanks @fivdi ! |
I am running practically the example code:
And nothing is printed to the screen. I have tried reinstalling johnny-five, but this does not fix the issue. Regular characters print just fine to the LCD, it is only custom ones that fail. I tested my LCD out in the Arduino IDE with a custom character and it drew it just fine, but for some reason no character will work in johnny-five. Is this a known issue or have I completely done something wrong?
Edit: Actually, if I use
useChar
, it will not print ANYTHING to the LCD afterwards.The text was updated successfully, but these errors were encountered: