// Include the libraries
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1351.h>
#include <SPI.h>
// Define the pins
#define sclk 5
#define mosi 7
#define cs 8
#define rst 0
#define dc 1
// Create the display object
Adafruit_SSD1351 display = Adafruit_SSD1351(cs, dc, mosi, sclk, rst);
// Define the colors
#define BLACK 0x0000
#define WHITE 0xFFFF
void setup() {
// Initialize the display
display.begin();
display.fillScreen(BLACK);
// Set the text color and size
display.setTextColor(WHITE);
display.setTextSize(10);
// Print the text
display.setCursor(10, 10);
display.println("Hello World!");
}
void loop() {
// Nothing to do here
}