#include #include #include #define SCREEN_WIDTH 128 // OLED display width, in pixels #define SCREEN_HEIGHT 64 // OLED display height, in pixels // Reset pin not used with the XIAO RP2040, set to -1 Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1, 1700000UL, 1700000UL); void setup() { // Initialize the display if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { for(;;); // Don’t proceed, loop forever if not found } display.clearDisplay(); // Turn on a single pixel at (x=10, y=10) display.drawPixel(10, 10, SSD1306_WHITE); // Send buffer to display display.display(); } void loop() { // Nothing needed here }