4/8bit LCD library for HD44780, HD47780, ST7036 TestProject

4/8bit LCD library for HD44780, HD47780, ST7036 TestProject

Postby vloki » Wed Apr 29, 2015 10:49 am

MPLAB-X project with differnt configurations for testing LCD lib
on different boards and with different PICs and compilers.

- PICDEM 2+, PIC18F4520, XC8
- PICDEM USB, PIC18F4550, C18
- custom board, PIC18F25K22, C18 + XC8


(? http://www.microchip.com/forums/FindPost/860680 )


<edit> added 8bit data support ...
Attachments
LCD_LIB_TEST_20150608.zip
(16.14 KiB) Downloaded 720 times
vloki
Verified identity
 
Posts: 176
Joined: Wed May 28, 2014 8:42 am
Location: Germany
PIC experience: Professional 5+ years with MCHP products

Re: 4/8bit LCD library for HD44780, HD47780, ST7036 TestPro

Postby RodneyBoris » Sun Jul 15, 2018 12:59 pm

vloki wrote:MPLAB-X project with differnt configurations for testing LCD lib
on different review boards of phenq and with different PICs and compilers.

- PICDEM 2+, PIC18F4520, XC8
- PICDEM USB, PIC18F4550, C18
- custom board, PIC18F25K22, C18 + XC8
<edit> added 8bit data support ...


Thank you SO much for adding 8bit data support. Needed it badly for a project and was stuck. I really appreciate your efforts.
RodneyBoris
 
Posts: 1
Joined: Sun Jul 15, 2018 12:54 pm

Re: 4/8bit LCD library for HD44780, HD47780, ST7036 TestPro

Postby ric » Tue Jul 31, 2018 4:33 am

In LCD_LIB_BUSY.H
Code: Select all
// Cursor / Display shift       0   0   |   0   0   0   1   S/C R/L -   -
    #define DISPLAY_SHIFT_R     0x1C
    #define DISPLAY_SHIFT_L     0x18
    #define CURSOR_MOVE_R       0x14
    #define CURSOR_MOVE_L       0x14

The last line should be 0x10, not 0x14
Latest test project, an LED matrix display made from one reel of addressable LEDs. here
User avatar
ric
Verified identity
 
Posts: 454
Joined: Sat May 24, 2014 2:35 pm
Location: Melbourne, Australia
PIC experience: Professional 5+ years with MCHP products

Re: 4/8bit LCD library for HD44780, HD47780, ST7036 TestPro

Postby vloki » Wed Aug 01, 2018 7:28 am

Oh, yes.
My git repository tells me that I corrected that in November 2015.
Guess it was never used until now ;-)

There is at least one more thing that should be corrected.
In the same header a delay after the Clear display macro was added;
Code: Select all
void LCD_Init(void);
#define LCD_Clear() LCD_Command(CLEAR_DISPLAY); LCD_DELAY_5MS()
#define LCD_Home()  LCD_Command(RETURN_HOME); LCD_DELAY_5MS()


I should rebuild the test project with actual sources and post it here...
vloki
Verified identity
 
Posts: 176
Joined: Wed May 28, 2014 8:42 am
Location: Germany
PIC experience: Professional 5+ years with MCHP products


Return to Graphics and LCD

Who is online

Users browsing this forum: No registered users and 8 guests

cron