You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,10 @@ This is a driver for the SSD1306 based 128x64 pixel OLED display running on the
4
4
5
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
6
7
+
## Credits
8
+
Many thanks go to Fabrice Weinberg (@FWeinb) for optimizing and refactoring the UI library.
9
+
The init sequence for the SSD1306 was inspired by Adafruits library for the same display.
10
+
7
11
## Usage
8
12
9
13
The SSD1306Demo is a very comprehensive example demonstrating the most important features of the library.
@@ -24,7 +28,11 @@ The SSD1306Demo is a very comprehensive example demonstrating the most important
24
28
25
29
## Fonts
26
30
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.
31
+
Fonts are defined in a proprietary but open format. You can create new font files by choosing from a given list
32
+
of open sourced Fonts from this web app: http://oleddisplay.squix.ch
33
+
Choose the font family, style and size, check the preview image and if you like what you see click the "Create" button. This will create the font array in a text area form where you can copy and paste it into a new or existing header file.
// Or create one with the font tool at http://oleddisplay.squix.ch
128
+
void setFont(const char ∗fontData);
120
129
```
121
130
122
131
## Frame Transition Functions
123
132
124
-
The Frane Transition functions are a set of functions on top of the basic library. They allow you to easily write frames which will be shifted in regular intervals. The frame animation (including the frame indicators) will only be activated if you define callback functions with setFrameCallacks(..). If no callback methods are defined no indicators will be displayed.
133
+
The Frame Transition functions are a set of functions on top of the basic library. They allow you to easily write frames which will be shifted in regular intervals. The frame animation (including the frame indicators) will only be activated if you define callback functions with setFrameCallacks(..). If no callback methods are defined no indicators will be displayed.
125
134
126
135
```C++
127
136
// Sets the callback methods of the format void method(x,y). As soon as you define the callbacks
128
137
// the library is in "frame mode" and indicators will be drawn.
129
-
void setFrameCallbacks(int frameCount, void (*frameCallbacks[])(int x, int y));
0 commit comments