Skip to content

Commit 9876799

Browse files
committed
Added read
1 parent fc48473 commit 9876799

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,27 @@
11
# esp8266-oled-ssd1306
2+
3+
This is a driver for the SSD1306 based 128x64 pixel OLED display running on the Arduino/ESP8266 platform.
4+
5+
You can either download this library as a zip file and unpack it to your Arduino/libraries folder or (once it has been added) choose it from the Arduino library manager.
6+
7+
## Usage
8+
9+
The SSD1306Demo is a very comprehensive example demonstrating the most important features of the library.
10+
11+
## Features
12+
13+
* Draw pixels at given coordinates
14+
* Draw or fill a rectangle with given dimensions
15+
* Draw Text at given coordinates:
16+
* Define Alignment: Left, Right and Center
17+
* Set the Fontface you want to use (see section Fonts below)
18+
* Limit the width of the text by an amount of pixels. Before this widths will be reached, the renderer will wrap the text to a new line if possible
19+
* Display content in automatically side scrolling carousel
20+
* Define transition cycles
21+
* Define how long one frame will be displayed
22+
* Draw the different frames in callback methods
23+
* One indicator per frame will be automatically displayed. The active frame will be displayed from inactive once
24+
25+
## Fonts
26+
27+
Fonts are defined in a proprietary but open format. I wrote a program that converts any TrueType font into this format. Once the code is useful enough I will publish it or make it available as Webapplication (SaaS), where you can make any font you like available to the library.

SSD1306Fonts.h

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
/**The MIT License (MIT)
2+
3+
Copyright (c) 2015 by Daniel Eichhorn
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+
23+
See more at http://blog.squix.ch
24+
*/
25+
126
const char ArialMT_Plain_10[] PROGMEM = {
227
0x0A, // Width: 10
328
0x0D, // Height: 13
@@ -599,4 +624,3 @@ const char ArialMT_Plain_24[] PROGMEM = {
599624
0x00,0x00,0x00,0x00,0x00,0x0E,0x1E,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x30,0x60,0x70,0x30,0x18,0x18,0x18,0x18,0x18,0x18,0x18,0x1E,0x0E,0x00,0x00, // 125
600625
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x80,0x3F,0x66,0xFC,0x01,0x3C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 // 126
601626
};
602-

0 commit comments

Comments
 (0)