oledswitch 2.0.0.0
main.c File Reference

OledSwitch Click example. More...

#include "board.h"
#include "log.h"
#include "oledswitch.h"
#include "oledswitch_image.h"

Functions

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

Detailed Description

OledSwitch Click example.

Description

This example showcases how to configure and use the OLED Switch click. This click is a combination of a button and a full color organic LED display. Displays settings are first loaded onto the chip and after that you can show any 64x48 pixel image on the display.

The demo application is composed of two sections :

Application Init

This function initializes and configures the click modules. In order for the click to work properly, you need to configure display and power settings. The full initialization of the chip is done in the default_cfg(...) function.

Application Task

This function shows the user how to display images on the OLED screen. Every image you'd like to display needs to have a resolution of 64x48 and be stored in a 6144 cell array.

Note
Every pixel on the OLED screen is displayed at the time of writing to the chip (PWM 1). Displaying speed can be directly controled by adding delays in the for loop section of the draw_image(...) function.
Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( )

◆ application_task()

void application_task ( )

◆ main()

int main ( void )