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 (136636 times)
  2. FAT32 Library (69842 times)
  3. Network Ethernet Library (55895 times)
  4. USB Device Library (46227 times)
  5. Network WiFi Library (41867 times)
  6. FT800 Library (41087 times)
  7. GSM click (28945 times)
  8. PID Library (26402 times)
  9. mikroSDK (26318 times)
  10. microSD click (25329 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: 6880 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

Accel 11 click

0

Accel 11 click features an ultra-low power triaxial accelerometer sensor with embedded intelligence, labeled as the BMA456.

[Learn More]

7-SEG 2 click

0

7-SEG 2 Click is a compact add-on board that represents an easy solution for adding a numeric or hexadecimal display to your application. This board features the LDT-M2804RI, a three-digit seven-segment display from Lumex. The display has a 0.28” height, red LED segments, gray faces, and white diffused segments. All three digits come with a following dot point that can be used as a decimal point in displaying the number values.

[Learn More]

Ambient 23 click

0

Ambient 23 Click is a compact add-on board that measures the intensity of visible light. This board features the VEML3235SL, an advanced ambient light sensor designed by the CMOS process from Vishay Semiconductors that transforms light intensity to a 16-bit digital signal output that can be directly communicated via an I2C interface.

[Learn More]