Hi all
This is a show and tell but also a question on the results of the setup.
Based of of jdhawks code myself and another contrubitor have built a linux/php/mysql dynamic menu system. The action menus are not yet in place (display results, do actions etc) but will be working soon. however here is the code I have so far and would like to see what results anyone gets. Main thing I run into is that I am unable to consistently display more then 16 characters on the 4 lines(it works on and off). If I keep the lines under 16 charcters then it works great. Not sure if its my code or the dispay has an issue.
Example of problem:
This is line 1 test
This will work on and off on any of the display lines (1-4) When it doesnt work it simply will not display the line and will leave it blank.
But this will work fine consistently:
This is Line 1
Itroduction to the project and instruction on setup.
Basically this is a PHP CLI driven setup. Must be ran under root(still in develpment). The requirements are simple (PHP and Mysql and a 635 LCD)
Place these files anywhere in a directory. (I placed the files temporaily in the \var\www\html\ in a folder called ALCD.
In the include.inc I have the max_length set to 15 so that the menu will work consistently. If you set it to 20 thats when I start having random display issues(some lines work some dont and then they all work).
attached are the files needed and the mysql database.
make sure you take off or delete the .txt to make the files valid and place them in your directory. You will need import the sql file into your mysql database(using command line or phpmyadmin) and edit the database.inc file to reflect the username password to your mysql database
Execute the program by changing to the directory of the files and then issue:
php lcd.php
You will notice the screen will load the intro then sleep after 5 second. after a keypress it will light backup and then allow you to interact with the menu. If you let it stay idle for a few seconds it will sleep again (to help save the lcd backlight)
Thanks in advance and let me know if any one gets the same results of intermitten displaying by changing the MAX_LENGTH variable to 20. (Fist try it with the default variable 15, then switch it to 20 to see if its any different for you)
Thanks
crees
This is a show and tell but also a question on the results of the setup.
Based of of jdhawks code myself and another contrubitor have built a linux/php/mysql dynamic menu system. The action menus are not yet in place (display results, do actions etc) but will be working soon. however here is the code I have so far and would like to see what results anyone gets. Main thing I run into is that I am unable to consistently display more then 16 characters on the 4 lines(it works on and off). If I keep the lines under 16 charcters then it works great. Not sure if its my code or the dispay has an issue.
Example of problem:
This is line 1 test
This will work on and off on any of the display lines (1-4) When it doesnt work it simply will not display the line and will leave it blank.
But this will work fine consistently:
This is Line 1
Itroduction to the project and instruction on setup.
Basically this is a PHP CLI driven setup. Must be ran under root(still in develpment). The requirements are simple (PHP and Mysql and a 635 LCD)
Place these files anywhere in a directory. (I placed the files temporaily in the \var\www\html\ in a folder called ALCD.
In the include.inc I have the max_length set to 15 so that the menu will work consistently. If you set it to 20 thats when I start having random display issues(some lines work some dont and then they all work).
attached are the files needed and the mysql database.
make sure you take off or delete the .txt to make the files valid and place them in your directory. You will need import the sql file into your mysql database(using command line or phpmyadmin) and edit the database.inc file to reflect the username password to your mysql database
Execute the program by changing to the directory of the files and then issue:
php lcd.php
You will notice the screen will load the intro then sleep after 5 second. after a keypress it will light backup and then allow you to interact with the menu. If you let it stay idle for a few seconds it will sleep again (to help save the lcd backlight)
Thanks in advance and let me know if any one gets the same results of intermitten displaying by changing the MAX_LENGTH variable to 20. (Fist try it with the default variable 15, then switch it to 20 to see if its any different for you)
Thanks
crees
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
Attachments
-
1.7 KB Views: 409
-
2.2 KB Views: 385
-
8.5 KB Views: 392
-
4.5 KB Views: 651
Last edited: