c16x12 2.0.0.0
main.c File Reference

16x12 Click example More...

#include "board.h"
#include "log.h"
#include "c16x12.h"

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Variables

char demo_text [7] = "MikroE"
 
uint16_t demo_image_light [12]
 
uint16_t demo_image_dark [12]
 
char name [] = "16x12"
 

Detailed Description

16x12 Click example

Description

This application draw image on the led matrics.

The demo application is composed of two sections :

Application Init

Initialization default device configuration, sets LED mode, configuration ABM and display one character.

Application Task

Clear display, display one by one leds, display one character, display image and display text with scroll.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )

Variable Documentation

◆ demo_image_dark

uint16_t demo_image_dark[12]
Initial value:
=
{ 0xFFFF, 0xF999, 0xF333, 0xE667, 0xCCCF, 0x999F, 0xCCCF, 0xE667, 0xF333, 0xF999, 0xFFFF, 0xFFFF }

◆ demo_image_light

uint16_t demo_image_light[12]
Initial value:
=
{ 0x0000, 0x0666, 0x0CCC, 0x1998, 0x3330, 0x6660, 0x3330, 0x1998, 0x0CCC, 0x0666, 0x0000, 0x0000 }

◆ demo_text

char demo_text[7] = "MikroE"

◆ name

char name[] = "16x12"