iT邦幫忙

2026 iThome 鐵人賽

DAY 10
0
ChatGPT & Codex

窮鬼冰箱升級計劃系列 第 10 篇

【Day 10】加上 OLED 液晶螢幕模組

  • 分享至 

  • xImage
  •  

前言

程式碼

  • 先來一段測試碼
#include <Wire.h>

#define OLED_SDA  1
#define OLED_SCL  3

void setup() {

  Serial.begin(115200);

  Wire.begin(
    OLED_SDA,
    OLED_SCL
  );

  Serial.println("I2C Scanner");

  for (
    uint8_t address = 1;
    address < 127;
    address++
  ) {

    Wire.beginTransmission(address);

    uint8_t error =
      Wire.endTransmission();

    if (error == 0) {

      Serial.printf(
        "Found I2C device: 0x%02X\n",
        address
      );
    }
  }
}

void loop() {
}

上一篇
【Day 9】設定 Codex,打造 beggarFridge 的 Vibe Coding 開發環境
下一篇
【Day 11】Raspberry Pi Backend / FastAPI 專案拆成真正的 Application
系列文
窮鬼冰箱升級計劃 共 12 篇
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言