#include <SPI.h>
#include "Ucglib.h"
/*
Hardware SPI Pins:
Arduino Uno sclk=13, data=11
Arduino Due sclk=76, data=75
Arduino Mega sclk=52, data=51
>>> Please uncomment (and update) one of the following constructors. <<<
*/
//Ucglib_SEPS225_16x128x128_UNIVISION_HWSPI ucg(/*cd=*/ 9, /*cs=*/ 10, /*reset=*/ 8);
Ucglib_ILI9163_18x128x128_HWSPI ucg(/*cd=*/ 5, /*cs=*/ 4, /*reset=*/ 8); /* HW SPI Adapter */
void setup(void)
{
delay(1000);
ucg.begin(UCG_FONT_MODE_SOLID);
ucg.clearScreen();
ucg.setRotate90();
ucg.setScale2x2();
}
int n = 0;
void loop(void)
{
ucg.setFont( ucg_font_logisoso22_tr);
ucg.setPrintPos(0,30);
ucg.setColor(255, 250, 255);
ucg.setColor(1, 255, 0, 0);
ucg.print(n);
delay(1000);
n++;
}