There have been lots of questions about how to use the Dash with the Adafruit OLED. So here is a brief description of how to use this 1.3" 128x64 Adafruit OLED with the Dash.
Download the latest Adafruit SSD1306 and GFX libraries. I am using 1.1.2 and 1.2.2, respectively.
We are going to use the SPI interface to connect to the Dash. The I2C should work also, but you may need to add 10K Ohm pull-ups to the I2C lines.
OLED -> Dash, from right to left on the OLED
GND -> L02
Vin -> R12
3v3 -> N/C
CS -> L07
Rst -> L04
DC -> L03
Clk -> L05
Data -> L06
This config allows us to use either Hardware or Software SPI. If you want to use software SPI, you can change any of the pins to any Dash digital IO pin, except for GND and Vin.
#define OLED_MOSI L06 #define OLED_CLK L05 #define OLED_DC L03 #define OLED_CS L07 #define OLED_RESET L04 Adafruit_SSD1306 display(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);
#define OLED_DC L03 #define OLED_CS L07 #define OLED_RESET L04 Adafruit_SSD1306 display(OLED_DC, OLED_RESET, OLED_CS);
Add either (but not both!) of these definitions to the ssd1306_128x64_spi example provided by the Adafruit SSD_1306 library. Compile and program the example and you should see the demo running on your display.