Als Beispiel der Code:
/*********************************************************************
2 This is an example for our Monochrome OLEDs based on SSD1306 drivers
3
4 Pick one up today in the adafruit shop!
5 ------> http://www.adafruit.com/category/63_98
6
7 This example is for a 128x64 size display using SPI to communicate
8 4 or 5 pins are required to interface
9
10 Adafruit invests time and resources providing this open source code,
11 please support Adafruit and open-source hardware by purchasing
12 products from Adafruit!
13
14 Written by Limor Fried/Ladyada for Adafruit Industries.
15 BSD license, check license.txt for more information
16 All text above, and the splash screen must be included in any redistribution
17 *********************************************************************/
18
19 #include <SPI.h>
20 #include <Wire.h>
21 #include <Adafruit_GFX.h>
22 #include <Adafruit_SSD1306.h>
23
24 // If using software SPI (the default case):
25 #define OLED_MOSI 9
26 #define OLED_CLK 10
27 #define OLED_DC 11
28 #define OLED_CS 12
29 #define OLED_RESET 13
30 Adafruit_SSD1306 display(OLED_MOSI, OLED_CLK, OLED_DC, OLED_RESET, OLED_CS);
31
32 /* Uncomment this block to use hardware SPI
33 #define OLED_DC 6
34 #define OLED_CS 7
35 #define OLED_RESET 8
36 Adafruit_SSD1306 display(OLED_DC, OLED_RESET, OLED_CS);
37 */
38
39 #define NUMFLAKES 10
40 #define XPOS 0
41 #define YPOS 1
42 #define DELTAY 2
43
44 #define LOGO16_GLCD_HEIGHT 16
45 #define LOGO16_GLCD_WIDTH 16
46 static const unsigned char PROGMEM logo16_glcd_bmp[] =
47 { B00000000, B11000000,
48 B00000001, B11000000,
49 B00000001, B11000000,
50 B00000011, B11100000,
51 B11110011, B11100000,
52 B11111110, B11111000,
53 B01111110, B11111111,
54 B00110011, B10011111,
55 B00011111, B11111100,
56 B00001101, B01110000,
57 B00011011, B10100000,
58 B00111111, B11100000,
59 B00111111, B11110000,
60 B01111100, B11110000,
61 B01110000, B01110000,
62 B00000000, B00110000 };
63
......
Der Code kommt aus dem Example "ssd1306_128x64_spi.ino"
Oder ich kann auch einen ganz einfachen Code nehmen mit "Hello World" das klappt auch nicht.
Kompilieren und hochladen hat geklappt ohne Probleme.
Reinhold