c8800retro 2.0.0.0
main.c File Reference

8800Retro Click example More...

#include "board.h"
#include "log.h"
#include "c8800retro.h"

Enumerations

enum  c8800retro_demo_example_t { DEMO_KEYPAD4x4 , DEMO_FULL_CHARSET , DEMO_TEXT , DEMO_IMAGE }
 8800 Retro Click demo example values. More...
 

Functions

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

Variables

uint8_t c8800retro_demo_string [9] = { ' ', 'M', 'i', 'k', 'r', 'o', 'E', ' ', 0 }
 
uint8_t c8800retro_demo_logo_mikroe [8] = { 0x7F, 0xFF, 0xC0, 0xFF, 0xFF, 0xC0, 0xFF, 0x7F }
 

Detailed Description

8800Retro Click example

Description

This example demonstrates the use of 8800 Retro click board.

The demo application is composed of two sections :

Application Init

Initializes the driver and issues the click default configuration, then asks the user to select the demo example using the on-board KeyPad.

Application Task

There are 4 different demo examples: KeyPad 4x4, Full charset, Text, and Image. This function will run the previously selected demo example in the loop. The user can always switch the example by pressing the button D4 three times in a row. In order to run the demo examples successfully, please follow the instructions logged on the USB UART.

Author
Stefan Filipovic

Enumeration Type Documentation

◆ c8800retro_demo_example_t

8800 Retro Click demo example values.

Enum values for demo examples selection.

Enumerator
DEMO_KEYPAD4x4 
DEMO_FULL_CHARSET 
DEMO_TEXT 
DEMO_IMAGE 

Function Documentation

◆ application_init()

void application_init ( void )

< Logger config object.

< Click config object.

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

◆ c8800retro_demo_logo_mikroe

uint8_t c8800retro_demo_logo_mikroe[8] = { 0x7F, 0xFF, 0xC0, 0xFF, 0xFF, 0xC0, 0xFF, 0x7F }

◆ c8800retro_demo_string

uint8_t c8800retro_demo_string[9] = { ' ', 'M', 'i', 'k', 'r', 'o', 'E', ' ', 0 }