/
SSD_Deneme
61 lines (55 loc) · 2.61 KB
/
SSD_Deneme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
int sayi;
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 display;
const unsigned char PROGMEM elektromanyetix [] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x0F, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x1F,
0x80, 0x00, 0x00, 0x00, 0xFE, 0x3F, 0xC0, 0x00, 0x00, 0x00, 0xFE, 0x3F, 0xC0, 0x00, 0x00, 0x01,
0xFE, 0x3F, 0xC0, 0x00, 0x00, 0x01, 0xF8, 0x7F, 0xE0, 0x00, 0x00, 0x03, 0x00, 0xE0, 0x70, 0x00,
0x00, 0x1C, 0x03, 0x80, 0x1C, 0x00, 0x01, 0xF8, 0x7F, 0x00, 0x0F, 0xE0, 0x03, 0xF8, 0xFF, 0x00,
0x07, 0xF0, 0x07, 0xF8, 0xFE, 0x00, 0x07, 0xF0, 0x07, 0xF8, 0xFE, 0x00, 0x07, 0xF0, 0x03, 0xF8,
0xFC, 0x00, 0x03, 0xF0, 0x01, 0xFC, 0x38, 0x00, 0x00, 0xC0, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x00,
0x00, 0x03, 0xC0, 0x00, 0x00, 0x00, 0x03, 0xE1, 0xFC, 0x0F, 0x80, 0x00, 0x07, 0xF1, 0xFE, 0x1F,
0xC0, 0x00, 0x07, 0xF8, 0xFE, 0x3F, 0xC0, 0x00, 0x07, 0xF8, 0xFE, 0x3F, 0xC0, 0x00, 0x03, 0xF8,
0x7C, 0x3F, 0x80, 0x00, 0x00, 0xFC, 0x10, 0x7E, 0x00, 0x00, 0x00, 0x06, 0x00, 0xC0, 0x00, 0x00,
0x00, 0x03, 0xC7, 0x80, 0x00, 0x00, 0x03, 0xF1, 0xFF, 0x00, 0x00, 0x00, 0x07, 0xF1, 0xFE, 0x00,
0x00, 0x00, 0x07, 0xF8, 0xFE, 0x00, 0x00, 0x00, 0x07, 0xF0, 0xFE, 0x00, 0x00, 0x00, 0x03, 0xE0,
0x7C, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00,
0x01, 0xC0, 0x30, 0x00, 0x00, 0xC0, 0x03, 0xF0, 0xFC, 0x00, 0x03, 0xF0, 0x07, 0xF0, 0xFE, 0x00,
0x07, 0xF0, 0x07, 0xF8, 0xFE, 0x00, 0x07, 0xF0, 0x07, 0xF8, 0xFF, 0x00, 0x07, 0xF0, 0x03, 0xF8,
0x7F, 0x00, 0x0F, 0xE0, 0x00, 0x1C, 0x03, 0x80, 0x1C, 0x00, 0x00, 0x07, 0x00, 0xC0, 0x30, 0x00,
0x00, 0x01, 0xF8, 0x7F, 0xE0, 0x00, 0x00, 0x01, 0xFC, 0x3F, 0xC0, 0x00, 0x00, 0x00, 0xFE, 0x3F,
0xC0, 0x00, 0x00, 0x00, 0xFE, 0x3F, 0xC0, 0x00, 0x00, 0x00, 0xFE, 0x1F, 0x80, 0x00, 0x00, 0x00,
0x7C, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
void setup() {
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
Wire.begin();
// miniature bitmap display
display.clearDisplay();
display.drawBitmap(0, 0, elektromanyetix, 48, 48, WHITE);
display.setTextColor(WHITE);
display.setTextSize(1);
display.setCursor(7,55);
display.print("elektromanyetix.com");
display.setCursor(60,5);
display.print("Elektronik,");
display.setCursor(60,20);
display.print("Bilim ve");
display.setCursor(60,35);
display.print("Teknoloji");
display.display();
}
void loop() {
/* sayi=sayi+1;
display.setTextColor(WHITE);
display.setTextSize(2);
display.setCursor(0,0);
display.println(sayi);
display.setTextSize(3);
display.println(sayi);
display.display();
display.clearDisplay();
*/
}