Use your forum account to login.


TOP Contributors

  1. MikroElektronika Team (541 codes)
  2. Shawon Shahryiar (250 codes)
  3. Alcides Ramos (100 codes)
  4. Dany (66 codes)
  5. O B (62 codes)
  6. MikroBUS.NET Team (35 codes)
  7. NART SCHINACKOW (34 codes)
  8. Alberto Trasimeni (25 codes)
  9. Roman Toropov (25 codes)
  10. Arezki YOUYOU (24 codes)

Most Downloaded

  1. Timer Calculator (84122 times)
  2. FAT32 Library (40156 times)
  3. Network Ethernet Library (40118 times)
  4. USB Device Library (30652 times)
  5. Network WiFi Library (28912 times)
  6. FT800 Library (22086 times)
  7. PID Library (19989 times)
  8. GSM click (19715 times)
  9. microSD click - Example (16615 times)
  10. GPS click - Example (13351 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

I2C Library for Newhaven Display Serial LCD Modules


Author: Jim Walsh

Last Updated: 2017-04-01

Category: Graphics & LCD

Downloaded: 1953 times

Followed by: 2 users

A collection of functions that handle I2C communications with Newhaven Display's PIC16F690 controlled LCD modules (model numbers ending in '-V3').

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "I2C Library for Newhaven Display Serial LCD Modules" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "I2C Library for Newhaven Display Serial LCD Modules" changes.

Do you want to report abuse regarding "I2C Library for Newhaven Display Serial LCD Modules".

  • Information
  • Comments (2)
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Library Blog

These functions were designed to work with Newhaven Display's PIC16F690 controlled LCD modules.  They should work with any of the LCD's in the same series (model # ending in "-V3").

Changes in version 2.2

Made some minor code fixes to address issues that came up when programs using the library were compiled with the case-sensitive mode turned on.

Added 1 new function:
⦁   StringSize - Returns the size of a string in characters. Although primarily for internal use, this function can also be called by a program using the library  just like any of the other functions.


Library no longer has MikroE's C_String library as a dependency.   

Changes in version 2.1

Added 2 new functions:
⦁    LCD_Number_Out - Displays a number on the LCD at a given position
⦁    LCD_Number_Out_CP - Displays a number on the LCD at the current cursor position.

These functions take a number (long int) as the parameter and handle the processing needed to convert the number into characters that can be displayed on the LCD.

Changes in version 2.0
Fixed timing issue in the LCD_Brightness and LCD_Contrast functions that could cause characters to be dropped from the display
Fixed bug in LCD_Display_On function that could cause a letter 'A' to be added to the display when the function was called
Added 2 new functions:
⦁    LCD_Init  -  handles setting up the LCD and initializing the PIC I2C module
⦁    LCD_Change_I2C_Address - changes the I2C address of the LCD
Added a help file
There are now 2 constants that must be declared in your code for the library to work:
⦁    const unsigned short _I2C_ADDRESS   The I2C address of the LCD
⦁    const unsigned short _LCD_WIDTH     The column width of the LCD (usually 16 or 20)
The column parameter now starts with the first column being indicated as '1' instead of '0'
This change could possibly affect any existing code that uses these functions:
LCD_Line_Out        LCD_Chr_Out        LCD_Set_Pos


U.S. State Capitals Game

A geography quiz game for EasyPIC v7 with touch panel GLCD module.

[Learn More]

One-Wire Search Demo

A small example project (PIC18F45K22) that demonstrates using Maxim's search algorithm to find and identify any 1-wire devices connected to the bus. The demo program searches the bus and sends the ROM code of any devices it finds thru the UART port.

[Learn More]