TOP Contributors

  1. MIKROE (2642 codes)
  2. Alcides Ramos (347 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136217 times)
  2. FAT32 Library (69478 times)
  3. Network Ethernet Library (55705 times)
  4. USB Device Library (45989 times)
  5. Network WiFi Library (41638 times)
  6. FT800 Library (40780 times)
  7. GSM click (28788 times)
  8. PID Library (26327 times)
  9. mikroSDK (26051 times)
  10. microSD click (25139 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Library

LCD

Rating:

11

Author: dany

Last Updated: 2016-02-18

Package Version: 2.0.0.0

Category: LCD

Downloaded: 9924 times

Followed by: 3 users

License: MIT license  

* 2 (alternative) libs to drive LCD's (4 bits connections):
- One lib specific for 2x16,
- one more generic (upto 4 rows, 16-20 chars per row).
* A library to drive LCD via I2c (PCF2116 based, 1 to 4 rows, 12 or 24 chars per row
* A library to drive standard LCD's via I2c
* A library to drive standard LCD's via SPI.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "LCD" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "LCD" changes.

Do you want to report abuse regarding "LCD".

  • Information
  • Comments (4)

Library Blog

LCD Libraries:

* 2 (alternative) libs to drive LCD's (4 bits connections). Both provide also a harware reset possibility for the LCD. For LCDs with the HD44780, KS0066U or equivalent controller (the same type of LCD the MikroPascal LCD library is for).

- LCD_4bits (only for P16 and P18): A generic lib for LCD's with upto 4 rows, 16-20 chars per row.

- LCD1602_4bits (only for P16 and P18): A specific lib specific for 2x16 LCD's


* 2 libraries for I2c control of the LCD:

- LCD_I2c for LCD's with the PCF2116 controller. (for P16, P18, PIC24 and dsPIC): A library to drive LCD via I2c (1 to 4 rows, 12 or 24 chars per row -not all combinations are possible, see the PCF2116 datasheet-).

- LCD_I2c_PCF8574: A library to drive standard LCD's via the I2c interface (PCF8574 expander used).


* 1 library for SPI control of the LCD:

- LCD_SPI_74HC595: a library to drive standard LCD's via the SPI interface (74HC595 or 74HCT595 expander/shift register used).


The zipfiles have the same content as the packages.

Have Fun!

-----------------------------------------------------------------------------------------------------------------------------------------------
2012-11-12: The microBasic package(s) ha(s)(ve) been added.

Only the .mcl files are available as "library" files: they are copied from the mikroPascal version (the mP and mB .mcl files are compatible - luckely - ).

If you want to see some sources: look into the mP versions.

The example files are still in mP, not in mB. (I do not have an mB licence, so I can not compile them).

Some of the helpfiles are also still referring to mP, but all library "interfaces" are available in the mB language.

-----------------------------------------------------------------------------------------------------------------------------------------------
2013-01-26:  Replaced "Delay_ms" and "Delay_us" by routines available in the Delays lib.
"Delay_ms" and "Delay_us" are inline routines and cannot be used in libraries if they are to be used without source (e.g. non Pascal compilers).

========================================================================

2013-03-01: Added the LCD I2c library for the PCF2116.

This library is also made available for PIC24 and dsPIC, both mikroPascal and MikroBasic.

----------------------------------------------------------------------------------------------------------------------------------------------

2013-03-03: Extended the LCD I2c library for the PCF2116: Added:

- the possibility to use a dual (+ and-) power supply

- the possibility to fill programmable characters from a constant array or from a string.

========================================================================

2013-03-12: Added the LCD_I2c_PCF8574 library: drives a standard LCD (parallel interface) via an I2c expander (PCF8574). Saves a lot of output lines from the PIC, and makes an LCD also possible on PIC's with low pincount.

Connection diagram without LCD reset

Connection diagram without LCD reset

Connection diagram

View full image
Connection diagram with LCD reset

Connection diagram with LCD reset

Connection diagram.

View full image

-----------------------------------------------------------------------------------------------------------------------------------------------

2013-03-21: removed an omission in the example for the LCD_I2c_PCF8574 library: the call to "Soft_I2c_Init" was forgotten (still, it worked!).

=======================================================================

2013-03-28: v 2.0 of the package: LCD via SPI expander (74HC595 or 74HCT595) added

Added the library "LCD_SPI_74HC595" to drive standard LCD's (with HD44780 or KS0066U compliant controllers) via an 74HC(T)595 SPI output port expander.

Connection diagram LCD SPI without LCD reset

Connection diagram LCD SPI without LCD reset

Connection diagram

View full image
Connection diagram LCD SPI with LCD reset

Connection diagram LCD SPI with LCD reset

Connection diagram with LCD reset. In this case the notMR pin (pin 10) of the 74HC(T)595 may also be connected to the collector (c) of the bc557 transistor (= Vcc pin of the LCD) in stead of the 100nF/10K network.

View full image

----------------------------------------------------------------------------------------------------------------------------------------

2014-03-13: The mikroBasic files and zip files have been updated. All mB sources are present now (not tested if compilable though).


2015-01-26: Replaced the mB files: all mB files are compilable now (which e.g. means that all "with" statements are dealt with). I could however not link and test the libraries (no mB licence).

ALSO FROM THIS AUTHOR

PS2 Mouse Read

5

Returns the Delta X (hor), the Delta Y values (vert), the Delta Z (scrolwheel) values and the button status if one of those has changed. Only tested on P18 with 48 MHz MCU clock (will work probably also on 16 and on lower MCU clock speeds).

[Learn More]

Tool: mikroPascal to mikroBasic convertor

10

Simple mikroPascal for PIC to mikroBasic for PIC source code convertor. The tool can convert complete mP units to mB modules and complete mP programs to mB programs. It can be used both in interactive and batchmode.

[Learn More]

Wifi Plus click HTTP Client

0

With this example one can load an internet page from an HTTP server. At this moment the remote IP address is fixed in the code and it loads the default file from the server. All data received from the HTTP server is sent to Uart1 where it can be picked up by a uart program to display or to save to a file.

[Learn More]