Hi, I've a chinese 20x4 lcd display with same pin-layout as PICAXE axe134(18M2 lcd driver).
I don't have a 18M2 to drive this display but wondered if 20X2 could do the job and browsed this forum...
Is there any working 20x4 lcd driver code based on the picaxe 20x2 for serial(optionally i2c) available?
I don't have a 18M2 to drive this display but wondered if 20X2 could do the job and browsed this forum...
http://www.picaxeforum.co.uk/showthread.php?22480-AXE134Y-Serial-OLED-Modu
* Where to find info and schematic for the i2c controller from the AXE033 kit?
* The ebay link isn't available anymore?
http://www.picaxeforum.co.uk/showthread.php?23847-OLED-interface-with-High-Speed-Serial-i2c-and-Mapped-i2c
* Driver for 20x2 lcd's only by "Inglewoodpete".
* For 20x4 he mentioned "It could easily be modified to work with a 20x4 row LCD or OLED". Is this available now?
* If so how to connect the remaining 4 B-pins, updated schematic?
http://www.picaxeforum.co.uk/showthread.php?27556-AXE132-Predef
* Assembled his code with the missing "Pause 20", but think it's incomplete though...
Code:; AXE134 Serial 20x4 OLED using PICAXE-18M2 ; Emulates basic serial operation of the popular AXE033 module #picaxe 20x2 setfreq m8 pause 1000 ;Wait for LCD to initialise symbol LCDSerial = c.7 symbol LCDBacklight = c.5 SYMBOL lcdcommand = $FE ;= 254 - send this before following commands symbol lcdmessage = 253 ;Display message stored on AXE133 SYMBOL lcdclear = $01 ;clear screen and cursor to home position SYMBOL lcdline1 = 128 ;move to 1st line 1st character SYMBOL lcdline2 = 192 ;move to 2nd line 1st character SYMBOL lcdline3 = 148 ;move to start of 3rd line SYMBOL lcdline4 = 212 ;move to start of 4th line symbol baudmode = n2400 ;Serial speed for LCD symbol Brightness = w4 ;Define symbol to control PWM Duty ;Setup input and Outpit pins let dirsb = %11111111 ;Set Input or Output on B (All Outputs) let dirsc = %10100001 ;Set Input or Output on C (All I/P except) ;C.5 O/P (Backlight PWM) ;C.7 O/P (Serial to LCD) Brightness = 500 ;Set PWM Duty initial value (500 = 50% ;1000 = 100%) ;PWM Backlight pwmout LCDBacklight,249,brightness ;Turn on LCD Backlight ;Amend this to allow saving to EEPROM EEPROM 00, ("Message 0 1234567890") ;store msg 0 in the EEPROM memory EEPROM 20, ("Message 1 1234567890") ;store msg 1 in the EEPROM memory EEPROM 40, ("Message 2 1234567890") ;store msg 2 in the EEPROM memory EEPROM 60, ("Message 3 1234567890") ;store msg 3 in the EEPROM memory serout LCDSerial, baudmode, (lcdcommand,lcdclear) ;Clear display Pause 20 serout LCDSerial, baudmode, (lcdcommand,lcdline1) ;Position set to LCD Line 1 Pause 20 serout LCDSerial, baudmode, (lcdmessage,0) ;Displayed saved message 0 Pause 20 serout LCDSerial, baudmode, (lcdcommand,lcdline2) ;Position set to LCD Line 2 Pause 20 serout LCDSerial, baudmode, (lcdmessage,1) ;Displayed saved message 1 Pause 20 serout LCDSerial, baudmode, (lcdcommand,lcdline3) ;Position set to LCD Line 3 Pause 20 serout LCDSerial, baudmode, (lcdmessage,2) ;Displayed saved message 2 Pause 20 serout LCDSerial, baudmode, (lcdcommand,lcdline4) ;Position set to LCD Line 4 Pause 20 serout LCDSerial, baudmode, (lcdmessage,3) ;Displayed saved message 3 Pause 20 main: Goto main
Is there any working 20x4 lcd driver code based on the picaxe 20x2 for serial(optionally i2c) available?
Last edited: