Using a pin a in 4-pin LCD group for non-LCD functionality

by <a href=""><font color="#000000"><font size="2">Hero Employee</font></font> </a> Stephen on ‎12-12-2016 03:03 PM


Can I use a pin in a 4-pin LCD group for non-LCD functionality, such as a general purpose input? 


Yes, it is possible to use a pin in a 4-pin LCD group for non-LCD functionality. 

See the LCD_SEGEN register definition in the reference manual:

"Determines which segment lines are enabled. Each bit represents a group of 4 segment lines. To enable segment lines X to X+3 [...]

Each LCD segment pin can also be individually disabled by setting the pin to any other state than DISABLED in the GPIO pin configuration."