#include <Arduino.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 display;
void TEST_OLED()
{
Serial.println("[APP] OLED TEST");
display.begin(SSD1306_SWITCHCAPVCC, 0x78 >> 1); // 7-bits
display.clearDisplay();
display.setTextSize(2);
display.setTextColor(WHITE);
display.setCursor(0, 0);
display.println(" Arduino");
display.setTextColor(BLACK, WHITE);
display.println(" Azure ");
display.println(" Sphere ");
display.setTextSize(1);
display.setTextColor(WHITE, BLACK);
display.println();
display.println(" WizIO 2019");
display.display();
}
void setup()
{
Serial.begin(115200);
Serial.println("\nArduino Azure Sphere 2019 Georgi Angelov");
TEST_OLED();
}
void loop()
{
Serial.println("[APP] LOOP");
delay(10000);
}
I2C OLED Example
FreeRTOS example
https://github.com/Wiz-IO/platform-azure/tree/master/Examples/MTK_FreeRTOS