TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (405 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (133 codes)
  5. Bugz Bensce (97 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 (141695 times)
  2. FAT32 Library (74763 times)
  3. Network Ethernet Library (59208 times)
  4. USB Device Library (49225 times)
  5. Network WiFi Library (44996 times)
  6. FT800 Library (44528 times)
  7. GSM click (31196 times)
  8. mikroSDK (30100 times)
  9. microSD click (27580 times)
  10. PID Library (27538 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: 10859 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

TempSensors Ds1820 LM35

16

The basic functions for the DS18(S/B)20 (onewire digital temperature sensor), including string output, ready to display. A routine to convert a more than 9 bits temperature read from a DS18B20 to a string (to e.g. display on an LCD) is also present. Including Parasite Power and Configuration routines. The LM35 basic functions, code efficient.

[Learn More]

I2c non blocking

10

Replacement routines for I2c1_Rd and I2c1_Wr but here with timeout, so no blocking any more when a device one tries to access is not present. The mE I2c library is still needed for the remaining I2c routines. Implemented also the code for controllers with 2 I2c's (e.g. P18F27K40).

[Learn More]

C RTOS for mP and mB (P18 and P24)

10

CRTOS stands for Cooperative Real Time Operating System; designed for and written specifically in mP/mB from mikroElektronika. The system uses cooperative as opposed to pre-emptive scheduling which means that the application code you write has to voluntarily release back to the operating system at appropriate times.

[Learn More]