Download an automatic Windows 32 / 64 bit installation setup. You can convert graphics into data arrays for GLCD and Generate arrays from system or editable Font. Now open the GLCD bitmap editor application from the Tools menu of mikroC Pro for PIC compiler. Select the size and the controller of the GLCD display that you are using. I selected 128×64 (KS0108) from the available options. Next, click on Load BMP button and select the BMP file that you. Buy among 1000+ MikroElektronika original products: Compilers, Development boards, Add-on Boards, Programmers Debuggers and more. The bitmap for the image will be saved in an array as shown in the below image. Use this array in your code for displaying the image/logo on the GLCD. Below is the complete code with the bit map array. Check glcd.h file for pin connection. Download the complete project folder from this link: Hardware design Files and Code Library. Download GLCD Tools for free. With GLCD Tools you can convert windows bitmap files (bmp) to a byte array suitable for graphic LCD displays. Additionally you can create fontsets out of your system fonts for the displays.
Graphic Lcd Library
The mikroC PRO for PIC provides a library for operating Graphic Lcd 128x64 (with commonly used Samsung KS108/KS107 controller).
For creating a custom set of Glcd images use Glcd Bitmap Editor Tool.
Library Dependency Tree
External dependencies of Graphic Lcd Library
The following variables must be defined in all projects using Graphic Lcd Library: | Description : | Example : |
---|---|---|
extern sfr char GLCD_DataPort; | Glcd Data Port. | char GLCD_DataPort at PORTD; |
extern sfr sbit GLCD_CS1; | Chip Select 1 line. | sbit GLCD_CS1 at RB0_bit; |
extern sfr sbit GLCD_CS2; | Chip Select 2 line. | sbit GLCD_CS2 at RB1_bit; |
extern sfr sbit GLCD_RS; | Register select line. | sbit GLCD_RS at RB2_bit; |
extern sfr sbit GLCD_RW; | Read/Write line. | sbit GLCD_RW at RB3_bit; |
extern sfr sbit GLCD_EN; | Enable line. | sbit GLCD_EN at RB4_bit; |
extern sfr sbit GLCD_RST; | Reset line. | sbit GLCD_RST at RB5_bit; |
extern sfr sbit GLCD_CS1_Direction; | Direction of the Chip Select 1 pin. | sbit GLCD_CS1_Direction at TRISB0_bit; |
extern sfr sbit GLCD_CS2_Direction; | Direction of the Chip Select 2 pin. | sbit GLCD_CS2_Direction at TRISB1_bit; |
extern sfr sbit GLCD_RS_Direction; | Direction of the Register select pin. | sbit GLCD_RS_Direction at TRISB2_bit; |
extern sfr sbit GLCD_RW_Direction; | Direction of the Read/Write pin. | sbit GLCD_RW_Direction at TRISB3_bit; |
extern sfr sbit GLCD_EN_Direction; | Direction of the Enable pin. | sbit GLCD_EN_Direction at TRISB4_bit; |
extern sfr sbit GLCD_RST_Direction; | Direction of the Reset pin. | sbit GLCD_RST_Direction at TRISB5_bit; |
Library Routines
Basic routines:
Advanced routines:
Glcd_Init
Prototype | void Glcd_Init(); |
---|---|
Returns | Nothing. |
Description | Initializes the Glcd module. Each of the control lines is both port and pin configurable, while data lines must be on a single port (pins <0:7>). |
Requires | Global variables :
|
Example |
Glcd_Set_Side
Prototype | void Glcd_Set_Side(unsigned short x_pos); |
---|---|
Returns | Nothing. |
Description | Selects Glcd side. Refer to the Glcd datasheet for detailed explanation. Parameters :
The parameter Note : For side, x axis and page layout explanation see schematic at the bottom of this page. |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example | The following two lines are equivalent, and both of them select the left side of Glcd: |
Glcd_Set_X
Prototype | void Glcd_Set_X(unsigned short x_pos); |
---|---|
Returns | Nothing. |
Description | Sets x-axis position to Parameters :
Note : For side, x axis and page layout explanation see schematic at the bottom of this page. |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_Set_Page
Prototype | void Glcd_Set_Page(unsigned short page); |
---|---|
Returns | Nothing. |
Description | Selects page of the Glcd. Parameters :
Note : For side, x axis and page layout explanation see schematic at the bottom of this page. |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_Read_Data
Mikroelektronika 27s Glcd Bmp Editor Download 2017
Prototype | unsigned short Glcd_Read_Data(); |
---|---|
Returns | One byte from Glcd memory. |
Description | Reads data from from the current location of Glcd memory and moves to the next location. |
Requires | Glcd needs to be initialized, see Glcd_Init routine. Glcd side, x-axis position and page should be set first. See functions Glcd_Set_Side, Glcd_Set_X, and Glcd_Set_Page. |
Example |
Glcd_Write_Data
Photo Editors
Prototype | void Glcd_Write_Data(unsigned short ddata); |
---|---|
Returns | Nothing. |
Description | Writes one byte to the current location in Glcd memory and moves to the next location. Parameters :
|
Requires | Glcd needs to be initialized, see Glcd_Init routine. Glcd side, x-axis position and page should be set first. See functions Glcd_Set_Side, Glcd_Set_X, and Glcd_Set_Page. |
Example |
GLCD Tools Download | SourceForge.net
Glcd_Set_Ext_Buffer
Prototype | void Glcd_Set_Ext_Buffer(char* (*getExtDataPtr)(unsigned long offset, unsigned int count, unsigned int *num)); |
---|---|
Returns | Nothing. |
Description | Function sets pointer to the user function which manipulates the external resource. Parameters :
|
Requires | Glcd module needs to be initialized. See the Glcd_Init routine. |
Example |
Glcd_Fill
Prototype | void Glcd_Fill(unsigned short pattern); |
---|---|
Returns | Nothing. |
Description | Fills Glcd memory with the byte Parameters :
To clear the Glcd screen, use To fill the screen completely, use |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_Dot
Prototype | void Glcd_Dot(unsigned short x_pos, unsigned short y_pos, unsigned short color); |
---|---|
Returns | Nothing. |
Description | Draws a dot on Glcd at coordinates ( Parameters :
The parameter Note : For x and y axis layout explanation see schematic at the bottom of this page. |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_Line
Prototype | void Glcd_Line(int x_start, int y_start, int x_end, int y_end, unsigned short color); |
---|---|
Returns | Nothing. |
Description | Draws a line on Glcd. Parameters :
The parameter |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_V_Line
Prototype | void Glcd_V_Line(unsigned short y_start, unsigned short y_end, unsigned short x_pos, unsigned short color); |
---|---|
Returns | Nothing. |
Description | Draws a vertical line on Glcd. Parameters :
The parameter |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_H_Line
Prototype | void Glcd_H_Line(unsigned short x_start, unsigned short x_end, unsigned short y_pos, unsigned short color); |
---|---|
Returns | Nothing. |
Description | Draws a horizontal line on Glcd. Parameters :
The parameter |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_Rectangle
Prototype | void Glcd_Rectangle(unsigned short x_upper_left, unsigned short y_upper_left, unsigned short x_bottom_right, unsigned short y_bottom_right, unsigned short color); |
---|---|
Returns | Nothing. |
Description | Draws a rectangle on Glcd. Parameters :
The parameter |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_Rectangle_Round_Edges
Prototype | void Glcd_Rectangle_Round_Edges(unsigned short x_upper_left, unsigned short y_upper_left, unsigned short x_bottom_right, unsigned short y_bottom_right, unsigned short round_radius, unsigned short color); |
---|---|
Returns | Nothing. |
Description | Draws a rounded edge rectangle on Glcd. Parameters :
The parameter |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_Rectangle_Round_Edges_Fill
Prototype | void Glcd_Rectangle_Round_Edges_Fill(unsigned short x_upper_left, unsigned short y_upper_left, unsigned short x_bottom_right, unsigned short y_bottom_right, unsigned short round_radius, unsigned short color); |
---|---|
Returns | Nothing. |
Description | Draws a filled rounded edge rectangle on Glcd with color. Parameters :
The parameter |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_Box
Prototype | void Glcd_Box(unsigned short x_upper_left, unsigned short y_upper_left, unsigned short x_bottom_right, unsigned short y_bottom_right, unsigned short color); |
---|---|
Returns | Nothing. |
Description | Draws a box on Glcd. Parameters :
The parameter |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_Circle
Prototype | void Glcd_Circle(int x_center, int y_center, int radius, unsigned short color); |
---|---|
Returns | Nothing. |
Description | Draws a circle on Glcd. Parameters :
The parameter |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_Circle_Fill
Prototype | void Glcd_Circle_Fill(int x_center, int y_center, int radius, unsigned short color); |
---|---|
Returns | Nothing. |
Description | Draws a filled circle on Glcd. Parameters :
The parameter |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_Set_Font
Prototype | void Glcd_Set_Font(const char *activeFont, unsigned short aFontWidth, unsigned short aFontHeight, unsigned int aFontOffs); |
---|---|
Returns | Nothing. |
Description | Sets font that will be used with Glcd_Write_Char and Glcd_Write_Text routines. Parameters :
The user can use fonts given in the file “__Lib_GLCDFonts” file located in the Uses folder or create his own fonts. List of supported fonts:
For the sake of the backward compatibility, these fonts are supported also:
|
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_Set_Font_Adv
Prototype | void Glcd_Set_Font_Adv(const far char *activeFont, unsigned char font_color, char font_orientation); |
---|---|
Description | Sets font that will be used with Glcd_Write_Char_Adv and Glcd_Write_Text_Adv routines. |
Parameters |
|
Returns | Nothing. |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example | |
Notes | None. |
Glcd_Set_Ext_Font_Adv
Prototype | void Glcd_Set_Ext_Font_Adv(unsigned long activeFont, unsigned int font_color, char font_orientation); |
---|---|
Description | Sets font that will be used with Glcd_Write_Char_Adv and Glcd_Write_Text_Adv routines. Font is located in an external resource. |
Parameters |
|
Returns | Nothing. |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example | |
Notes | None. |
Glcd_Write_Char
Prototype | void Glcd_Write_Char(unsigned short chr, unsigned short x_pos, unsigned short page_num, unsigned short color); |
---|---|
Returns | Nothing. |
Description | Prints character on the Glcd. Parameters :
The parameter Note : For x axis and page layout explanation see schematic at the bottom of this page. |
Requires | Glcd needs to be initialized, see Glcd_Init routine. Use Glcd_Set_Font to specify the font for display; if no font is specified, then default |
Example |
Glcd_Write_Char_Adv
Prototype | void Glcd_Write_Char_Adv(unsigned char ch, unsigned int x, unsigned int y); |
---|---|
Returns | Nothing. |
Description | Writes a char on the glcd at coordinates (x, y).
|
Requires | glcd module needs to be initialized. See the Glcd_Init routine. |
Example |
Glcd_Write_Text
Prototype | void Glcd_Write_Text(char *text, unsigned short x_pos, unsigned short page_num, unsigned short color); |
---|---|
Returns | Nothing. |
Description | Prints text on Glcd. Parameters :
The parameter Note : For x axis and page layout explanation see schematic at the bottom of this page. |
Requires | Glcd needs to be initialized, see Glcd_Init routine. Use Glcd_Set_Font to specify the font for display; if no font is specified, then default |
Example |
Glcd_Write_Text_Adv
Prototype | void Glcd_Write_Text_Adv(unsigned char *text, unsigned int x, unsigned int y); |
---|---|
Returns | Nothing. |
Description | Writes text on the glcd at coordinates (x, y). Parameters :
|
Requires | Glcd module needs to be initialized. See the Glcd_Init routine. |
Example |
Glcd_Write_Const_Text_Adv
Prototype | void Glcd_Write_Const_Text_Adv(const far char *ctext, unsigned int x, unsigned int y); |
---|---|
Returns | Nothing. |
Description | Writes text located in the program memory on the glcd at coordinates (x, y). Parameters :
|
Requires | Glcd module needs to be initialized. See the Glcd_Init routine. |
Example |
Glcd_Image
Prototype | void Glcd_Image(code const unsigned short *image); |
---|---|
Returns | Nothing. |
Description | Displays bitmap on Glcd. Parameters :
Use the mikroC PRO for PIC integrated Glcd Bitmap Editor to convert image to a constant array suitable for displaying on Glcd. |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_Ext_Image
Prototype | void Glcd_Ext_Image(unsigned long image); |
---|---|
Description | Displays a bitmap from an external resource. |
Parameters |
|
Returns | Nothing. |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example | |
Notes | Use the mikroC PRO for PIC32 integrated Glcd Bitmap Editor, Tools > Glcd Bitmap Editor, to convert image to a constant array suitable for displaying on Glcd. |
Glcd_PartialImage
Prototype | void Glcd_PartialImage(unsigned int x_left, unsigned int y_top, unsigned int width, unsigned int height, unsigned int picture_width, unsigned int picture_height, code const unsigned short * image); |
---|---|
Returns | Nothing. |
Description | Displays a partial area of the image on a desired location. Parameters :
Use the integrated Glcd Bitmap Editor (menu option Tools › Glcd Bitmap Editor) to convert image to a constant array suitable for displaying on Glcd. |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example |
Glcd_Ext_PartialImage
Prototype | void Glcd_Ext_PartialImage(unsigned int x_left, unsigned int y_top, unsigned int width, unsigned int height, unsigned int picture_width, unsigned int picture_height, unsigned long image); |
---|---|
Description | Displays a partial area of the image, located on an external resource, on a desired location of the screen. |
Parameters |
|
Returns | Nothing. |
Requires | Glcd needs to be initialized, see Glcd_Init routine. |
Example | |
Notes | Use the mikroC PRO for PIC32 integrated Glcd Bitmap Editor, Tools > Glcd Bitmap Editor, to convert image to a constant array suitable for displaying on Glcd. |
Library Example
The following example demonstrates routines of the Glcd library: initialization, clear(pattern fill), image displaying, drawing lines, circles, boxes and rectangles, text displaying and handling.
HW Connection
Glcd HW connection
What do you think about this topic ? Send us feedback!
Flash Online Scanner
Meanwhile all these Flash files can be played online, or they can be downloaded to your hard disk by 100-500% accelerating rate in speed - all at your willJust image the exciting experience: it takes you only few minutes to have the Top 100 in a well-known site of Flash resources, without much strenuosity in mouse-clicking and without much time of waiting for annoying advertisements.
- Publisher: ZGW Software, Inc.
- Last updated: May 26th, 2020
NeoSynth Patch Editor
Cached
NeoSynth is an audio/MIDI expander available as an expansion board for CME keyboards (UF and VX series). It provides high quality audio instruments and effects and adds great sonic possibilities to CME keyboards. This software allows an in depth access to all parameters of NeoSynth, the audio routing can be configured, as well as all effects and channels parameters.
- Publisher: WaveIdea
- Last updated: February 5th, 2011
Themer - TWL Theme Editor
The theme manager decouples the visual representation of widgets from the code. Themes are specified in XML and PNG files with full alpha blending for effects such as glow or shadows. These themed can be created using the TWL Theme Editor, which also includes a powerful tool to create bitmap fonts from TrueType fonts.
- Publisher: Matthias Mann
- Last updated: July 10th, 2012
ImageX control
With Fath ImageX control you can easily add bitmap image view, print, create and convert capabilities to your applications.It supports methods to create image viewer or full-featured graphics editor application.Fath ImageX Control also comes with a large variety of new features.
- Publisher: Fath Software
- Home page:www.fathsoft.com
- Last updated: April 1st, 2008
CR8tracer
CR8tracer is a free utility for tracing bitmaps. This application is meant to transform a bitmap image into a smooth, scalable postscript file. It accepts raster images or bitmap graphics format (BMP) as input and produces high-quality scalable images of EPS, PS, GFS and SVG formats.
- Publisher: Allan Murray
- Home page:www.cr8software.net
- Last updated: May 18th, 2008
- Publisher: OptimiData
- Home page:www.optimidata.com
- Last updated: May 26th, 2020
PCX Viewer
PCX viewer is a great application if you have .pcx images and want to convert them in other, newer, file formats. PCX viewer is fast, small and easy-to-use freeware image viewer, supported by all versions of Windows. With this viewer you can easy convert and save opened PCX images in file formats as JPEG, BMP, GIF, PNG and others.
- Publisher: IdeaMK
- Home page:pcxviewer.com
- Last updated: April 28th, 2010
Blaze Audio RipEditBurn
RipEditBurn is a totally integrated sound editor, CD ripper and burner. It's the only program you'll need for converting tapes and records to CD or conversion between sound files. Drag and drop convience. 4 programs in one!
- Publisher: Blaze Audio
- Last updated: April 26th, 2008
BlueGriffon
BlueGriffon is a web and EPUB editor based on the rendering engine of Firefox. It inherits a variety of features from Netscape, Mozilla Composer, and Nvu. This tool lets you design HTML5 pages that includes audio, video, and forms. CSS 3 features including 2D and 3D Transformations, Transitions, Shadows, Columns, and Font Features can be used.
- Publisher: Disruptive Innovations SAS
- Home page:bluegriffon.org
- Last updated: December 25th, 2019
Voxengo Elephant
Voxengo Elephant is a mastering limiter AAX, AU, and VST plug-in for professional music production applications. It features transparent signal limiting action, 10 predefined limiter modes, limiter mode editor, noise-shaped bit-depth converter, DC offset removal filter, waveform graph view, stereo and multi-channel processing, internal channel routing, and more.
- Publisher: Voxengo
- Home page:www.voxengo.com
- Last updated: January 8th, 2017
mikroC PRO for AVR
mikroC PRO for AVR is an ANSI C compiler for Atmel AVR microcontrollers. You get features such as LCD Custom Character Tool, GLCD Bitmap Editor, Seven Segment Editor, UART Terminal, UDP Terminal, and HID Terminal, which improve the speed of program development.
- Publisher: MikroElektronika
- Home page:www.mikroe.com
- Last updated: July 3rd, 2013
ReaConverter Lite
Free batch image converter and image editing software. reaConverter Lite can handle ultra-fast batch conversions between JPG/JPEG, GIF, TIF/TIFF, PNG and BMP images with access to lots of advanced picture editing tools and format specific features.
- Publisher: ReaSoft
- Home page:www.reaconverter.com
- Last updated: June 16th, 2021
Chronotron Pro
Chronotron Pro 1.0 is an audio plug-in that can be hosted on any DirectX application allowing users to change pitch without affecting temp and/or change tempo without affecting pitch. Users are presented with an easy to use interface that they can operate by controlling sliders, buttons and check boxes and all functions are also accessible via the keyboard.
- Publisher: Chronotron.com
- Last updated: June 6th, 2017
Serif PhotoPlus X4
Take photos then make them great with PhotoPlus. Use it to edit, enhance, and organise your entire image collection. Remove red eye, restore old photos, add amazing effects and everything in between. You can even perform advanced tasks like editing Raw files, HDR image merging and more.
- Publisher: Serif (Europe) Ltd.
- Last updated: September 21st, 2011
Cool Music RecordEdit Station
Cool Music Record/Edit Station is a powerful audio recorder, editor, and re-encoder full of interesting features and functions. This professional tool comes with built-in audio encoders and decoders for the most popular audio formats, such as WAV, MP3, WMA, Ogg, AIF, and PCM, allowing you to convert audio files between formats easily.
- Publisher: Metrix Audio Solutions, Inc.
- Home page:www.audioeditor.com
- Last updated: May 14th, 2010
IconDeveloper
IconDeveloper is a program that makes it a snap to create your own icons for Windows. Most icon editors come with their own graphics editor. IconDeveloper doesn't. Instead, it assumes that most people who want to create icons are either going to create them using an existing graphics package like Photoshop, MS Paint, CorelDraw, or they take existing images (.BMP, .PNG, .JPG, etc.) and turn those into icons.So instead of putting effort into a bitmap editor, IconDeveloper focuses itself on making it really, really easy to turn existing images into Windows icons and allowing for common modification of those icons (resizing, color changing, etc.). The result is a program that makes icons extremely fast, extremely well and extremely easily.
- Publisher: Stardock Corporation
- Home page:www.stardock.com
- Last updated: November 8th, 2012
Pixelformer
Pixelformer does not limit you to icon-specific image sizes. Practically, this means that you generally would not need any additional software while making, say, an icon from a multi-megapixel photo. Or you can actually edit large images when a more appropriate tool is not available.
- Publisher: Qualibyte Software
- Home page:www.qualibyte.com
- Last updated: October 21st, 2008
FlashCAD
2D 3D Geometric Entities and Bitmap management, 3D Rendering and Animation, Inverse Perspective, Raster to Vector conversion, DXF DWG compatible. For Engineering, Architecture, Plant Engineering, Territorial Managing
Mikroelektronika%27s Glcd Bmp Editor Download
- Publisher: Digitarch
- Home page:flashcad.net