2018年6月29日 星期五
OLED SSD1306 Display
//D1 --SSD1305 SCL
//D2 --SSD1306 SDA
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET LED_BUILTIN //4
Adafruit_SSD1306 display(OLED_RESET);
//#if (SSD1306_LCDHEIGHT != 64)
//#error("Height incorrect, please fix Adafruit_SSD1306.h!");
//#endif
void setup() {
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
// Clear the buffer.
display.clearDisplay();
display.display();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0,0);
display.println("Hello from:");
display.println("http://alex9ufo.blogspot.com/");
display.display();
}
void loop() {
// put your main code here, to run repeatedly:
}
訂閱:
張貼留言 (Atom)
MQTT WS HMI 與 Wokwi ESP32 連線的資訊透過HiveMQ
MQTT WS HMI 與 Wokwi ESP32 連線的資訊透過HiveMQ https://console.hivemq.cloud/clusters 當您進入 HiveMQ Cloud Console 的 Clusters 頁面時,您的目標是取得能讓 MQTT W...






沒有留言:
張貼留言