setting_up_the_slave_umds
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
setting_up_the_slave_umds [2016/12/21 17:43] – [Edit launchUMD File] walkeradmin | setting_up_the_slave_umds [2016/12/21 17:51] – walkeradmin | ||
---|---|---|---|
Line 171: | Line 171: | ||
\\ | \\ | ||
sudo nano launchUMD.sh | sudo nano launchUMD.sh | ||
- | \\ | ||
\\ | \\ | ||
Line 185: | Line 184: | ||
</ | </ | ||
\\ | \\ | ||
+ | <color red> | ||
+ | \\ | ||
+ | lcd_string(" | ||
+ | lcd_string(" | ||
+ | \\ | ||
+ | <color red> | ||
+ | \\ | ||
+ | \\ | ||
+ | Edit the UMDisplay0x.py file by using: | ||
+ | \\ | ||
+ | sudo nano / | ||
\\ | \\ | ||
---- | ---- | ||
+ | ==== Test LCD Code ==== | ||
+ | \\ | ||
+ | Assuming that you have connected the LCD to the RPi (via the ribbon cable and driver board) then you can test the code that runs the LCD, on the slave this file is the: | ||
+ | \\ | ||
+ | UMDisplay0x.py (where x is 2, 3, 4 4 etc.) | ||
+ | \\ | ||
+ | This is a python script, you can run this script by entering at the command line: | ||
+ | \\ | ||
+ | ./ | ||
+ | \\ | ||
+ | If you are lucky, you will see some text on the LCD, chances are however you will not. This is due to the Potentiometer settings on the driver board, you will need to change these to set the Backlight and LCD intensity. | ||
+ | \\ | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | \\ | ||
+ | Adjusting these two potentiometers will allow you to balance the text and backlight intensity to get the brightness level you require. | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ---- | ||
+ | ==== Making it Automatic ==== | ||
+ | \\ | ||
+ | The last part is to automate the process of starting the UMD code. For this we need to add the launcher file to a system file on the RPi. | ||
+ | \\ | ||
+ | \\ | ||
+ | Edit the file / | ||
+ | \\ | ||
+ | sudo nano / | ||
+ | | ||
+ | add this line at the end: | ||
+ | sudo ./ | ||
+ | \\ | ||
+ | To test this, reboot and the LCD should start up automatically (the LCD won't clear on boot, but wait for the " | ||
+ | \\ | ||
+ | \\ | ||
setting_up_the_slave_umds.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1