#include "U8glib.h"
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_DEV_0 | U8G_I2C_OPT_NO_ACK | U8G_I2C_OPT_FAST);
char *apps[] =
{
"Keyboard",
"Snake"
};
void setup()
{
// Potentiometers
// Screen
u8g.setFont(u8g_font_tpssb);
u8g.setColorIndex(1);
}
void loop()
{
// Screen
u8g.firstPage();
do
{
u8g.setCursorPos(0, 16);
u8g.print(map(analogRead(A0), -180, 180, 0, 5));
u8g.setCursorPos(0, 32);
u8g.print(map(analogRead(A1), -180, 180, 0, 5));
}
while ( u8g.nextPage() );
}