c4x4rgb 2.0.0.0
main.c File Reference

4x4 RGB Click example More...

#include "board.h"
#include "c4x4rgb.h"
#include "c4x4rgb_delays.h"

Macros

#define SNAKE_DELAY   50
 
#define MASH_DELAY   100
 

Functions

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

Detailed Description

4x4 RGB Click example

Description

This application is used for powering 4x4 RGB LED matrix.

The demo application is composed of two sections :

Application Init

Initialization driver enables - GPIO.

Application Task

This is an example which demonstrates the use of 4x4 RGB Click board. This simple example shows all ten numbers in different colors on 4x4 RGB click. The 4x4 RGB click carries a matrix of 16 RGB LEDs and an MCP1826 low dropout regulator. These LEDs actually consist of three single colored LEDs ( Red, Green and Blue ) in a single package. Various colors can be reproduced by mixing the intensity of each LED.

Note
Make sure the logic delays are defined for your system in the c4x4rgb_delays.h file.

Diodes layout:

| 13 | 14 | 15 | 16 | |-----------------—| | 9 | 10 | 11 | 12 | |-----------------—| | 5 | 6 | 7 | 8 | |-----------------—|

| 1 | 2 | 3 | 4 |

Author
MikroE Team

Macro Definition Documentation

◆ MASH_DELAY

#define MASH_DELAY   100

◆ SNAKE_DELAY

#define SNAKE_DELAY   50

Function Documentation

◆ application_init()

void application_init ( void )

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )