User Tools

Site Tools


users:dagnall53:rocdisplay_howto

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
users:dagnall53:rocdisplay_howto [2019/05/08 19:08] – [Text Objects] dagnall53users:dagnall53:rocdisplay_howto [2019/05/08 19:18] – [Text Objects] dagnall53
Line 30: Line 30:
   * **Address** (eg:60) Can be 60 or 61.   * **Address** (eg:60) Can be 60 or 61.
   * **Display** (eg:1) ///**Weergave**) in Dutch//    * **Display** (eg:1) ///**Weergave**) in Dutch// 
-  * I will call this example in later descriptions (50,60,1),  +  * I will call this example in later descriptions (50,60,1) 
- +\\ 
- +Do not worry at this stage about putting any text in the "text" box in the 'General' tab when setting up the display, but do make sure you give the Text Object a name that you can recognise easily later. Incidentally, you can position the "text" on your RocView screen so it will show what will be sent. (Peter's example code uses this feature to show a timetable on the screen) 
- +\\  
- +The WiRocS node has two I2C busses, each can support have OLEDS with physical addresses 60 or 61\\
- +
- +
-Do not worry at this stage about putting any text in the "text" box in the 'General' tab when setting up the display, but Do Make sure you give the Text Object a name that you can recognise easily later. Incidentally, you can position the "text" on your RocView screen so it will show what will be sent. (Peter's example code uses this feature to show a timetable on the screen) +
-This illustration shows text object is "Node50_Display1" and has interface (50,60,01).  +
-The WiRocS node has two I2C busses, and if an OLED with Physical I2C address "60" is connected to the "Primary" I2C bus, it will use displays numbered 1-4. +
- +
-If an OLED with Physical I2C address "60" is connected to the "Secondary" I2C bus, it will use displays numbered 5-8.+
  
 So, for OLED with Physical address 60 on the primary I2C bus, the code automatically organises the RocDisplay messages on the OLED screen in vertical order like this: So, for OLED with Physical address 60 on the primary I2C bus, the code automatically organises the RocDisplay messages on the OLED screen in vertical order like this:
-  * --RocDisplay Message "1" (top line "{L0}'+  * --RocDisplay "display 1" (50,60,1) (Top line "{L0}')  
-  * --RocDisplay Message "1" (Second line "{L1}'+  * --RocDisplay "display 1" (Second line "{L1}'
-  * --RocDisplay Message "2" (top line "{L0}'+  * --RocDisplay "display 2" (50,60,2) (Top line "{L0}'
-  * --RocDisplay Message "2" (Second line "{L1}'+  * --RocDisplay "display 2" (Second line "{L1}'
-  * --RocDisplay Message "3" (top line "{L0}'+  * --RocDisplay "display 3" (50,60,3) (Top line "{L0}'
-  * --RocDisplay Message "3" (Second line "{L1}'+  * --RocDisplay "display 3" (Second line "{L1}'
-  * --RocDisplay Message "4" (top line "{L0}'+  * --RocDisplay "display 4" (50,60,4) (Top line "{L0}'
-  * --RocDisplay Message "4" (Second line "{L1}')+  * --RocDisplay "display 4" (Second line "{L1}')
  
 If you are using a 32 pixel high OLED, it will organise the display like this: If you are using a 32 pixel high OLED, it will organise the display like this:
-  * --RocDisplay Message "1" (top line "{L0}'+  * --RocDisplay "display 1" (50,60,1) (Top line "{L0}'
-  * --RocDisplay Message "1" (Second line "{L1}'+  * --RocDisplay "display 1" (Second line "{L1}'
-  * --RocDisplay Message "2" (top line "{L0}'+  * --RocDisplay "display 2" (50,60,2) (Top line "{L0}'
-  * --RocDisplay Message "2" (Second line "{L1}' +  * --RocDisplay "display 2" (Second line "{L1}'
- +
-Address "60" OLEDS on the secondary I2C bus will display the messages numbered 5-8.+
  
-If you have OLEDS with the Physical Address 61, these can be addressed by using address 61 in the Text interface, and they will then display messages 1-4 for the OLED connected to the primary I2C bus, and messages 5-8 for any OLED connected to the secondary I2C bus. +Address "60" OLEDS on the Secondary I2C bus will display the display messages numbered 5-8  eg:(50,60,5) \\ 
 +OLEDS with the Physical Address 61 on the primary I2C bus show display messages numbered 1-4 eg:(50,61,1)\\ 
 +Messages for Physical Address 61 on the secondary I2C bus show display messages numbered 5-8 eg:(50,61,5) \\
  
 For best effects, you will need to send some Formatting commands in your message to make them produce nice looking displays.  [[users:dagnall53:rdtextalign|WiRocS "RocDisplay" Syntax and Message Formatting]] shows the commands needed. For best effects, you will need to send some Formatting commands in your message to make them produce nice looking displays.  [[users:dagnall53:rdtextalign|WiRocS "RocDisplay" Syntax and Message Formatting]] shows the commands needed.