![]() |
ucglib_xmega_hal
2.1
Xmega Hardware Abstraction Layer for Ucglib
|
Test file for Xmega Hardware Abstraction Layer for ucglib from Oli Kraus for graphical color displays. More...
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "clock.h"
#include "csrc/ucg.h"
#include "ucglib_xmega_hal.h"
Macros | |
#define | F_CPU 32000000UL |
System clock is 32 MHz. | |
Functions | |
int | main (void) |
Variables | |
ucg_t | ucg |
ucg is a necessary global structure for ucg_lib | |
Test file for Xmega Hardware Abstraction Layer for ucglib from Oli Kraus for graphical color displays.
Basis example how to use ucglib with HAL for Xmega from Wim Dolman See for more info: https://dolman-wim.nl/xmega/libraries/index.php
This examples uses 1.8 inch TFT LCD Module and must be connected this way:
* Display Xmega * VCC 3V3 * GND GND * CS D4 (SS) * RESET D3 * A0 (DC or CD) D2 * SDA D5 (MOSI) * SCK D7 (SCK) * LED (BLK) D1 * D6 (MISO) not connected *
After this you can build the example.
int main | ( | void | ) |
Main function to demonstrate the usage of ucg_lib with the Xmega