node-red-contrib-blynk-websockets icon indicating copy to clipboard operation
node-red-contrib-blynk-websockets copied to clipboard

LCD Widget

Open brandonjjon opened this issue 8 years ago • 5 comments

Hi,

I noticed there was an LCD Print node in the non-websockets version. How can I print to the LCD with this?

Thanks

brandonjjon avatar Apr 18 '16 18:04 brandonjjon

Hey tzapu,

do you have a response for us here. I am still using a combination of websockets nodes that dont have connection issues and non-webockets nodes just for LCD support. It is annoying that the LCD node disconnects regularly. Is there a way to use websockets nodes to talk to the LCD virtual pins or do we need a LCD specific node. node-red is not exactly my thing and I am a bit stuck.

bretskee avatar May 21 '16 04:05 bretskee

hi, i need to implement the lcd node but my time is fairly limited currently.

i am not sure, but you may be able to use the current nodes to force something on the lcd, i ll try and check it for you

tzapu avatar May 21 '16 06:05 tzapu

I seem to be able to clear the display using your websocket write node sending "clr" in the payload to the virtual pin for the LCD. Is there some documentation as to how you might pack an LCD message in the payload to print text to an x, y position?? From the Arduino library I can see how they pack a message to the LCD "p40Hello", for x=0 and y=4, but it does not work. Any clues??. "p" seems to be the command.

bretskee avatar May 21 '16 06:05 bretskee

hi, well, i could just write, in simple mode to each of the lines using the virtual pins assigned. to have x and y values i think you will need to wait for the LCD widget. the current ones uses a different keyword vw instead of p so it would understand. or , pad with spaces to get the designered alignment for now and use vpins for y 0/1

hope it helps

tzapu avatar May 21 '16 06:05 tzapu

cracked it.. have a look at this: https://github.com/blynkkk/blynk-library/blob/master/extras/docs/Implementing.md

'p' + '\0' + x + '\0' + y + '\0' + "string" seems to work with your write node.

bretskee avatar May 21 '16 07:05 bretskee