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> 20150608 added 8bit data support ...

<edit2> 20190920 removed C18 and added XC8 C99 support ...
Attachments
LCD_LIB_TEST_20190920.zip
(17.33 KiB) Downloaded 85 times
LCD_LIB_TEST_20150608.zip
(16.14 KiB) Downloaded 1016 times
Last edited by vloki on Fri Sep 20, 2019 11:54 am, edited 1 time in total.
vloki
Verified identity
 
Posts: 182
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 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: 512
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: 182
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 ric » Mon Feb 04, 2019 9:44 am

I've removed posts by "RodneyBoris" and "RobertAlvarado", and banned both users, after they edited their posts to include hidden spammy links.
Latest test project, an LED matrix display made from one reel of addressable LEDs. here
User avatar
ric
Verified identity
 
Posts: 512
Joined: Sat May 24, 2014 2:35 pm
Location: Melbourne, Australia
PIC experience: Professional 5+ years with MCHP products


Return to Graphics and LCD

Who is online

Users browsing this forum: No registered users and 1 guest

cron