TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 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 (136555 times)
  2. FAT32 Library (69759 times)
  3. Network Ethernet Library (55856 times)
  4. USB Device Library (46197 times)
  5. Network WiFi Library (41817 times)
  6. FT800 Library (41014 times)
  7. GSM click (28931 times)
  8. PID Library (26386 times)
  9. mikroSDK (26297 times)
  10. microSD click (25307 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
mikroSDK Library

OSD click

Rating:

0

Author: MIKROE

Last Updated: 2019-07-30

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: OSD

Downloaded: 6865 times

Followed by: 1 user

License: MIT license  

This is a sample program which demonstrates the use of OSD click.
Program shows the time and date in corners of the screen and enable you to set the time and date, using the OSD menu.

No Abuse Reported

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

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

Do you want to report abuse regarding "OSD click".

  • mikroSDK Library 2.0.0.0
  • Comments (2)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

OSD click

OSD click

Front and back side appearance of the OSD click Board.

View full image

Library Description

The library covers all the necessary functions to control OSD click board. The library performs the communication with the device via SPI protocol by writing to registers and by reading from registers.

Key functions:

  • void osd_writeByte( uint8_t regAddress, uint8_t writeData ) - Write the byte of data function.
  • uint8_t osd_readByte( uint8_t regAddress ) - Read the byte of data function.
  • void osd_writeCharacter( uint8_t linePos, uint8_t rowPos, uint8_t symbol ) - Write a character by position function.

Examples description

The application is composed of the three sections :

  • System Initialization - Initializes SPI and LOG structures sets AN, INT and PWM pins as input, set RST and CS pins as output and start to write log.
  • Application Initialization - Initialization driver enables - SPI, the set default configuration, clears all character places, also write log.
  • Application Task - This is an example which demonstrates the use of OSD Click board. In this example, we write text on the screen, write character per 1 second in the first, seventh and fifteenth row of the screen.
void applicationTask()
{
    for ( cnt = 0; cnt < 30; cnt++ )
    {
        if( HEADER_TEXT[ cnt ] != ' ' )
        {
            osd_writeCharacter( 1, cnt, HEADER_TEXT[ cnt ] );
        }

        if( MESSAGE_TEXT[ cnt ] != ' ' )
        {
            osd_writeCharacter( 7, cnt, MESSAGE_TEXT[ cnt ] );
        }

        if( FOOTER_TEXT[ cnt ] != ' ' )
        {
            osd_writeCharacter( 14, cnt, FOOTER_TEXT[ cnt ] );
        }

        Delay_1sec();
    }

    osd_clearsCharPlaces( 0, 0, 16, 30 );
    Delay_1sec();
}

Other mikroE Libraries used in the example:

  • SPI
  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

Thermo 15 click

5

Thermo 15 Click is a Click board equipped with the sensor IC, which can digitize temperature measurements between -55°C and +125°C so that the temperature measurement data can be processed by the host MCU. Thermo 15 click provides an accuracy of ±1°C in the range from 0°C to 70°C.

[Learn More]

Button POWER click

5

Button Power Click is a very interesting interactive gadget on a Click board. It is an integrated capacitive touch sensor display in the form of a button.

[Learn More]

Temp-Hum 2 click

5

Temp-Hum 2 click is a smart temperature and humidity sensor click board, packed with features, that allow easy and simple integration into any design that requires accurate and reliable humidity and temperature measurements.

[Learn More]