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] – [Edit launchUMD File] walkeradminsetting_up_the_slave_umds [2016/12/21 17:48] – [Edit launchUMD File] walkeradmin
Line 171: Line 171:
 \\  \\ 
     sudo nano launchUMD.sh     sudo nano launchUMD.sh
-\\  
 \\  \\ 
  
 ---- ----
-==== Edit launchUMD File  ====+==== Edit UMDsiplay0x File  ====
 \\  \\ 
-The launchUMD file contains a link to the UMDisplay0x.py 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> <file>
-#!/bin/sh +write line 1 and 2 to the LCD 
-# launchUMD.sh +lcd_string(" " + line1,LCD_LINE_1) 
-# navigate to home directory, then to this directory then launch script +lcd_string(" " + line2,LCD_LINE_2) 
- +</file> 
-cd / +\\  
-cd home/pi/Python +<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: 
-sudo python UMDisplay01.py & +\\  
-cd / +    lcd_string(" " + line5,LCD_LINE_1) 
-</file +    lcd_string(" " + line6,LCD_LINE_2) 
 +\\  
 +<color red>LCD_LINE_1</colorrefers to the Line on the LCD (Line 1 is the top, line 2 is the bottom)
 \\  \\ 
-This file needs to be edited so that the line <color blue>sudo python UMDisplay</color><color red>1</color><color blue>.py &</color> points to the correct UMD Device (so if this is your third UMD Device it needs to contain UMDisplay0<color red>3</color> 
 \\  \\ 
-    sudo nano launchUMD.sh+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