c10x10rgb 2.0.0.0
main.c File Reference

10x10 RGB Click example More...

#include "board.h"
#include "c10x10rgb.h"
#include "c10x10rgb_delays.h"

Functions

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

Variables

const uint32_t MIKROE_IMAGE [100]
 

Detailed Description

10x10 RGB Click example

Description

This example showcases how to initialize, configure and use the 10x10 RGB click module. The click has a 10 by 10 RGB LED matrix which can be programmed to show different colors or even images. LED elements that form the matrix communicate by a single line with the host MCU.

The demo application is composed of two sections :

Application Init

This function initializes and configures the click board.

Application Task

This function first displays 3 chars { R, G, B }, the string "MIKROE", the company logo and a rainbow in the end.

Note
Make sure the logic delays are defined for your system in the c10x10rgb_delays.h file.
Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )

Variable Documentation

◆ MIKROE_IMAGE

const uint32_t MIKROE_IMAGE[100]
Initial value:
=
{
0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,
0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,
0x000000,0x000000,0x181800,0x181800,0x181800,0x181800,0x181800,0x181800,0x181800,0x000000,
0x000000,0x181800,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,
0x000000,0x181800,0x181800,0x181800,0x181800,0x181800,0x181800,0x181800,0x181800,0x000000,
0x000000,0x181800,0x181800,0x181800,0x181800,0x181800,0x181800,0x181800,0x181800,0x000000,
0x000000,0x181800,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,
0x000000,0x000000,0x181800,0x181800,0x181800,0x181800,0x181800,0x181800,0x181800,0x000000,
0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,
0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000,0x000000
}