c4x4rgb  2.0.0.0
Macros | Functions
main.c File Reference

4x4 RGB Click example More...

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

Macros

#define DELAY_SHORT   2
 
#define DELAY_LONG   5
 
#define SNAKE_DELAY   50
 
#define MASH_DELAY   100
 

Functions

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

Detailed Description

4x4 RGB Click example

Description

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

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:

**Diodes layout:**

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

| 1 | 2 | 3 | 4 |

Author
MikroE Team

Macro Definition Documentation

◆ DELAY_LONG

#define DELAY_LONG   5

◆ DELAY_SHORT

#define DELAY_SHORT   2

◆ 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()

void main ( void  )