TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 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 (136616 times)
  2. FAT32 Library (69820 times)
  3. Network Ethernet Library (55883 times)
  4. USB Device Library (46220 times)
  5. Network WiFi Library (41859 times)
  6. FT800 Library (41074 times)
  7. GSM click (28942 times)
  8. PID Library (26401 times)
  9. mikroSDK (26314 times)
  10. microSD click (25327 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 BarGraph library

Rating:

6

Author: Istvan K

Last Updated: 2016-02-19

Package Version: 1.0.0.0

Category: LCD

Downloaded: 2358 times

Followed by: 2 users

License: MIT license  

Contains an all-in-one function which allows to create parameterized LCD bargraph(s). 8 variants, 'unlimited' width. For any pic12/16, pic12/16_enhanced and pic18.

No Abuse Reported

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

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

Do you want to report abuse regarding "LCD BarGraph library".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Library Blog

My complete Bargraph library (PIC, mikroC)

Contains an all-in-one function which allows to create parameterized bargraph(s) on an HD44780 compliant LCD.

.    Scalable, configurable via predefined mode constants.
.    Any width can be used, it's limited by the LCD line lenght only !!
.    8 different mode (variants): 3-5-7 segments and 35 pixels, all twice.
.    No any init function since the used custom char is on the fly defined
.    Max. 8 independent (even 1..4 char vertical) bargraph can be used     
     on the same LCD (because there are only 8 custom chars).

Separated libraries for the three families (pic12/16, pic12/16_Enh and pic18).
Published in precompiled (MCL) form but with description and a lot of working examples.

.       USAGE:

LCD_BarGraph (char cc,                     used custom char  (0...7),  must be unique !
.                            char pos,                   starting position, eg   _LCD_THIRD_ROW + 3
.                            char mode,               variant  (use one of the predefined constants)
.                            char width,               number of chars,  determines the full-scale
.                            unsigned value);       will be displayed

The "LCD_" tag means that it uses (calls) two mikroE LCD libary functions:
.      extern void Lcd_Cmd (char);
.      extern void Lcd_Chr_CP (char);
and you have to use the usual LCD pin definitions and the Lcd_Init func.
.      (but you can write your own functions too, using the same names)



I created several Proteus projects (attached with C sources) to show the possibilities.
The test circuit is always the same, the "8chVoltmeter_4v9.DSN"

See the demo animations and the pictures:                       

 

Demo Animation 1

Demo Animation 1

Shows how to operate the different modes

View full image
Demo Animation 2

Demo Animation 2

Four different 14ch horizontal, three different 4char vertical Bargraph, full scale = 1024 counts

View full image
The test Proteus circuit

The test Proteus circuit

it is always the same, the "8chVoltmeter_4v9.DSN"

View full image
DemoProg Outputs

DemoProg Outputs

The outputs of the specific demo programs

View full image

ALSO FROM THIS AUTHOR

Common output functions

6

Second part of my new library collection: the common output functions, using func-pointers or a user written char-out routine. In addition, an other library with the mikroC UART1 and LCD char-outs. For all 8-bit PICs.

[Learn More]

Full LCD library set

11

Same way usable (uniformized) LCD libraries. 4- and 8-bit (and both with Busy-flag checking), 1-, 2- and 3-wire interface. Every library allows you to manage 4 LCD. For all 8-bit PIC (p16, p16e and p18).

[Learn More]

Memory manipulation library

5

Memory manipulation (eg sprint-like) function-collection plus some simplified arithmetic and bit-handling routine in one library. For all 8-bit PIC (pic12/16, pic12e/16e and pic18).

[Learn More]