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 (136549 times)
  2. FAT32 Library (69743 times)
  3. Network Ethernet Library (55847 times)
  4. USB Device Library (46184 times)
  5. Network WiFi Library (41803 times)
  6. FT800 Library (40993 times)
  7. GSM click (28926 times)
  8. PID Library (26385 times)
  9. mikroSDK (26288 times)
  10. microSD click (25301 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: 6862 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

Proximity 8 click

0

Proximity 8 click is a close-range proximity sensing Click board™, equipped with the VCNL36687S, a very accurate and power-efficient proximity sensor (PS) with VCSEL.

[Learn More]

Proximity click

0

Proximity Click features VCNL4010 proximity and ambient light sensor. It combines an infrared emitter and PIN photodiode for proximity measurement with a range of up to 20cm.

[Learn More]

Compass 6 click

0

Compass 6 Click is a compact add-on board perfect for implementation in applications such as an electronic compass. This board features the HSCDTD008A, a high-sensitivity geomagnetic sensor from ALPS Alpine.

[Learn More]