Skip to content

Commit a075ccc

Browse files
committed
added DISPLAY_WIDTH and DISPLAY_HEIGHT
1 parent a559c12 commit a075ccc

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

uTapeEmulator/uTapeEmulator.ino

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
/*
22
***************************************************************************
3-
** Program : uTapeEmulator v4
4-
** Copyright (c) 2017 Willem Aandewiel
5-
**
6-
** TERMS OF USE: MIT License. See bottom of file.
3+
* Program : uTapeEmulator v4
4+
* Copyright (c) 2017 Willem Aandewiel
5+
*
6+
* Date : 17-11-2020
7+
*
8+
* TERMS OF USE: MIT License. See bottom of file.
79
***************************************************************************
8-
*/
10+
* Board: "Generic ESP8266 Module"
11+
* Builtin Led: "2"
12+
* CPU Frequency: "80 MHz"
13+
* Flash Size: "4MB (FS:2MB OTA:~1019KB)"
14+
***************************************************************************/
915

1016
#include <ESP.h>
1117
#include <ESP8266WiFi.h>
1218
#include <FS.h>
1319
#include <SSD1306.h>
1420

15-
#define _BV(bit) (1 << (bit))
21+
//#define _BV(bit) (1 << (bit))
1622
#define _SET(a,b) ((a) |= _BV(b))
1723
#define _CLEAR(a,b) ((a) &= ~_BV(b))
1824

@@ -38,6 +44,8 @@
3844
#define _DATAROOT "/KIM"
3945
#define _DIMOLEDTIME 300000 // five minutes
4046

47+
#define DISPLAY_WIDTH 128
48+
#define DISPLAY_HEIGHT 64
4149

4250
// Initialize the OLED display using Wire library
4351
SSD1306 display(0x3c, _SDA, _SCL);

0 commit comments

Comments
 (0)