United Kingdom
Asked — Edited
Resolved Resolved by DJ Sures!

Help With Lcd Display Scripts

I would be grateful for some help with a couple of scripts. It is for a LCD05 16x2 display connected to i2c and can display text no problem, but I want to be able to display the live time and date but got no idea of how to write the scripts, although I have tried and failed. I did ask something similar in another post regarding voltage, but didn't manage to get that work either. Here's the main code for the display...

i2cwrite(0,0xc6,0,1,4,12,19,30,230,31,255,"Text is displayed here")

Ive tried numinous ways of scripting it to show the info with time, date, and voltage vairables, but it either shows the variable code ("$x" ), or a blank screen (without quote marks).

I very rarely ask for a full script to be written for me, just examples, as I like to work it out for myself, but I'm really stuck on this and have no idea what to do. So if somebody would oblige, even with one full example, I would very much appreciate it indeed. If I at least had a full working example, I could read through it, dissect it, hopefully understand it, and learn from it to write my own.

Thanks.:)


ARC Pro

Upgrade to ARC Pro

ARC Pro is your gateway to a community of like-minded robot enthusiasts and professionals, all united by a passion for advanced robot programming.

PRO
Synthiam
#1  


i2cwrite(0,0xc6,0,1,4,12,19,30,230,31,255,"Time is " + $time)


United Kingdom
#2  

Thanks buddy. I think I missed the + out of my code. I'll try it tomorrow.:)

United Kingdom
#3  

I thought I marked this as "resolved" already, but obviously it didn't go through. Anyway, thanks for the help DJ. I'm very grateful.:)