User Tools

Site Tools


setting_up_the_slave_umds

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
setting_up_the_slave_umds [2016/12/21 17:40] – [Raspi Config] walkeradminsetting_up_the_slave_umds [2016/12/21 17:48] – [Edit launchUMD File] walkeradmin
Line 172: Line 172:
     sudo nano launchUMD.sh     sudo nano launchUMD.sh
 \\  \\ 
 +
 +----
 +==== Edit UMDsiplay0x File  ====
 +\\ 
 +The UMDisplay0x file contains the code to write to the LCD. We do have to edit this file to tell it which of the two LCD lines to display from the my_data.txt file
 +\\ 
 +<file>
 +# write line 1 and 2 to the LCD
 +lcd_string(" " + line1,LCD_LINE_1)
 +lcd_string(" " + line2,LCD_LINE_2)
 +</file>
 +\\ 
 +<color red>Line1</color> refers to the line in the <color red>my_data.txt</color> file. So if this was UMD3, then you would want lines 5 and 6. so this would be:
 +\\ 
 +    lcd_string(" " + line5,LCD_LINE_1)
 +    lcd_string(" " + line6,LCD_LINE_2)
 +\\ 
 +<color red>LCD_LINE_1</color> refers to the Line on the LCD (Line 1 is the top, line 2 is the bottom)
 +\\ 
 +\\ 
 +Edit the UMDisplay0x.py file by using:
 +\\ 
 +    sudo nano /home/pi/Python/UMDisplay0x.py
 \\  \\ 
  
 ---- ----
 +
  
setting_up_the_slave_umds.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1