hippy
Ex-Staff (retired)
The attached program may be useful for people trying to determine where the start addresses are for lines of their LCD / OLED displays. It's for 20M2 but easily adjusted for any PICAXE; just change the LCD symbol and / or LCD_BAUD.
When the program has run and stopped updating the display the first two digits at the start of each line are the addresses in hex to use to put a character at that line. For example, if the display shows ...
8082848688....
C0C2C4C6C8....
The key numbers are "80" and "C0", and the following should address the appropriate lines ...
SerOut LCD, LCD_BAUD, ( 254, $80, "Line 1" )
SerOut LCD, LCD_BAUD, ( 254, $C0, "Line 2" )
It's not been exhaustively tested but seems to work and showed up all sorts of odd memory mapping for the displays I tested.
When the program has run and stopped updating the display the first two digits at the start of each line are the addresses in hex to use to put a character at that line. For example, if the display shows ...
8082848688....
C0C2C4C6C8....
The key numbers are "80" and "C0", and the following should address the appropriate lines ...
SerOut LCD, LCD_BAUD, ( 254, $80, "Line 1" )
SerOut LCD, LCD_BAUD, ( 254, $C0, "Line 2" )
It's not been exhaustively tested but seems to work and showed up all sorts of odd memory mapping for the displays I tested.
Attachments
-
776 bytes Views: 176
Last edited: