Hello All,
Recently I have been working on some "extra" LCD functions, I quickly found that one 2x16 LCD display was not going to have enough space on it. Then I found that RobotC did not have any functions for two LCD displays. I started looking on the internet for ways to use two LCD displays. I found [this thread ](https://vexforum.com/t/programming-two-lcd-displays/30100/1&highlight=displays) that referred me to J. Pearman's LCDLib. I did not find a part in the thread or documentation that told me how to add a second display. How would I add a second display? Advice will be greatly appreciated. Thanks in advance.
What do you mean by “how to add” a second display? Which part are you unsure about? James’ code is all there and ready to go. There’s an example on how to use it here.
Thanks for the quick reply. I am meaning how to print separate strings on two seperate displays. As an example: One LCD displays whether the “smart motor lib.” is “on” or “off” and the second LCD displays whether I am in “arcade drive” mode or “accel drive” mode. I know how in driver control you can have the code to turn on and off but I did not see how to show the strings on the separate displays. I have seen J. Pearman’s example code.
The “normal” ROBOTC LCD display will be connected to uart2. The second LCD display will be connected to uart1.
edit:
I will try and throw an example together tomorrow if I have time.
Thank you so much:). So you are saying I do not need to add any extra code to your example.
The following code will display “Default screen” on the LCD display plugged into UART2:
displayLCDString(0, "Default screen");
The following code will display “Secondary screen” on the LCD display plugged into UART1:
vexLcdSet(0, "Secondary screen");
Ok, so the built in RobotC functions are for the LCD display plugged into UART1 and the LCDLib is for the LCD display plugged into UART2.
Flip those and you’ve got it. The built-in RobotC functions are for an LCD display plugged into UART2. James’ vexLcdLib is for an LCD display plugged into UART1.
Ok, I started with the idea that the LCDLib printed to both with the same functions:o. Thanks everyone for helping out:).