#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>

#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels

#define OLED_RESET     -1 // Reset pin # (or -1 if sharing Arduino reset pin)
#define SCREEN_ADDRESS 0x3C ///< See datasheet for Address; 0x3D for 128x64, 0x3C for 128x32

Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);

// 'R', 71x50px
const unsigned char epd_bitmap_R [] PROGMEM = {
	0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 
	0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0x81, 0xff, 0xff, 
	0xff, 0xff, 0xff, 0xfe, 0xff, 0xfc, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xf3, 0x01, 
	0xf1, 0xe0, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xec, 0xf3, 0x9c, 0x1f, 0x3f, 0xff, 0xff, 0xfe, 0xff, 
	0xd2, 0x0b, 0x21, 0xc4, 0x7f, 0xff, 0xff, 0xfe, 0xff, 0x2c, 0xca, 0xf0, 0x09, 0xff, 0xff, 0xff, 
	0xfe, 0xfe, 0xdf, 0xf0, 0xd0, 0x1b, 0xff, 0xff, 0xff, 0xfe, 0xfb, 0x3f, 0xc8, 0xc0, 0x1d, 0xff, 
	0xff, 0xff, 0xfe, 0xff, 0xff, 0xc1, 0x04, 0x06, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xf7, 0x00, 0x08, 
	0x03, 0x7f, 0xff, 0xff, 0xfe, 0xff, 0xfc, 0x01, 0x09, 0xc1, 0x3f, 0xff, 0xff, 0xfe, 0xff, 0xff, 
	0x81, 0x80, 0x60, 0xbf, 0xff, 0xff, 0xfe, 0x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, 0xf8, 
	0x3c, 0xa7, 0x13, 0xfe, 0xff, 0xff, 0xef, 0x3c, 0x7f, 0xdc, 0x37, 0xc3, 0xfe, 0xff, 0xff, 0xe7, 
	0x7f, 0x07, 0x9b, 0x03, 0xe7, 0xfe, 0xff, 0xff, 0xf0, 0x7f, 0xc0, 0x18, 0xf1, 0xff, 0xfe, 0xff, 
	0xff, 0xfd, 0xff, 0xf0, 0x39, 0xf8, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x7b, 0xfe, 0xff, 
	0xfe, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x33, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x37, 
	0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 
	0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 
	0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 
	0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 
	0xff, 0xfe
};

// Array of all bitmaps for convenience. (Total bytes used to store images in PROGMEM = 480)
const int epd_bitmap_allArray_LEN = 1;
const unsigned char* epd_bitmap_allArray[1] = {
	epd_bitmap_R
};




void setup() {
  Serial.begin(9600);

  // SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
  if (!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
    Serial.println(F("SSD1306 allocation failed"));
    for (;;); // Don't proceed, loop forever
  }

  display.clearDisplay();

  //display.setTextColor(WHITE);
  // setCursor (int16_t x, int16_ y)
  //display.setCursor(20, 20);
  //setTextSize	(	uint8_t 	s	)
  //display.setTextSize(2);
  //display.print("Hallow ");

  //display.write(3);
  //drawLine	(	int16_t 	x0, int16_t 	y0, int16_t 	x1, int16_t 	y1, uint16_t 	color )
  //display.drawLine(0, 0, 127, 0, WHITE);
  //display.drawLine(0, 0, 0, 63, WHITE);
  //display.drawLine(127, 0, 127, 63, WHITE);
  //display.drawLine(0, 63, 127, 63, WHITE);
  //display.drawRect	(	5, 5, 117, 53, WHITE);
  display.drawBitmap (50, 5, R, 71, 50, WHITE );

  display.display();
  delay(2000); // Pause for 2 seconds
}

void loop() {
  NumberRan = random(0, 100);
  display.setTextColor(WHITE);
  display.setCursor(0,0);
  display.display();
  delay(1000);
  display.clearDisplay();
}
$abcdeabcde151015202530354045505560fghijfghij
esp:0
esp:2
esp:4
esp:5
esp:12
esp:13
esp:14
esp:15
esp:16
esp:17
esp:18
esp:19
esp:21
esp:22
esp:23
esp:25
esp:26
esp:27
esp:32
esp:33
esp:34
esp:35
esp:3V3
esp:EN
esp:VP
esp:VN
esp:GND.1
esp:D2
esp:D3
esp:CMD
esp:5V
esp:GND.2
esp:TX
esp:RX
esp:GND.3
esp:D1
esp:D0
esp:CLK
oled1:GND
oled1:VCC
oled1:SCL
oled1:SDA