This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "Wire.h" //OLEDとI2C接続するためのライブラリを読み込む | |
| #include "SSD1306.h" //OLEDとやり取りするためのライブラリを読み込む | |
| #define SDA 22 //SDAをGPIOの22へ | |
| #define SCL 18 //SCLをGPIOの18へ | |
| SSD1306 display(0x3c, SDA, SCL); //0x3cはI2Cアドレス | |
| void setup() { | |
OlderNewer