Skip to content

Instantly share code, notes, and snippets.

@jakalada
Last active November 23, 2016 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakalada/6f8cf0c2d54a7704b14ca04fed682bb8 to your computer and use it in GitHub Desktop.
Save jakalada/6f8cf0c2d54a7704b14ca04fed682bb8 to your computer and use it in GitHub Desktop.
ArduinoでOLEDディスプレイを試す ref: http://qiita.com/jakalada/items/8f83d07291d984a31633
#define SSD1306_I2C_ADDRESS 0x3D // 011110+SA0+RW - 0x3C or 0x3D
#define SSD1306_I2C_ADDRESS 0x3C // 011110+SA0+RW - 0x3C or 0x3D
#define SSD1306_I2C_ADDRESS 0x3D // 011110+SA0+RW - 0x3C or 0x3D
// #define SSD1306_128_64
#define SSD1306_128_32
// #define SSD1306_96_16
#define SSD1306_128_64
// #define SSD1306_128_32
// #define SSD1306_96_16
display.begin(SSD1306_SWITCHCAPVCC, 0x3D); // initialize with the I2C addr 0x3D (for the 128x64)
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // initialize with the I2C addr 0x3D (for the 128x64)
display.begin(SSD1306_SWITCHCAPVCC, 0x3D); // initialize with the I2C addr 0x3D (for the 128x64)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment