Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
esp8266-oled-ssd1306
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
c3pb
esp8266-oled-ssd1306
Commits
b6857d34
Commit
b6857d34
authored
9 years ago
by
Fabrice Weinberg
Browse files
Options
Downloads
Patches
Plain Diff
Convert tabs to spaces
parent
2d1ddf15
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
SSD1306.h
+6
-6
6 additions, 6 deletions
SSD1306.h
SSD1306Ui.h
+14
-9
14 additions, 9 deletions
SSD1306Ui.h
library.json
+8
-8
8 additions, 8 deletions
library.json
with
28 additions
and
23 deletions
SSD1306.h
+
6
−
6
View file @
b6857d34
...
...
@@ -101,7 +101,7 @@ enum SSD1306_TEXT_ALIGNMENT {
TEXT_ALIGN_LEFT
=
0
,
TEXT_ALIGN_RIGHT
=
1
,
TEXT_ALIGN_CENTER
=
2
,
TEXT_ALIGN_CENTER_BOTH
=
3
TEXT_ALIGN_CENTER_BOTH
=
3
};
class
SSD1306
{
...
...
@@ -111,16 +111,16 @@ class SSD1306 {
uint8_t
sda
;
uint8_t
sdc
;
uint8_t
*
buffer
;
uint8_t
*
buffer
;
#ifdef SSD1306_DOUBLE_BUFFER
uint8_t
*
buffer_back
;
uint8_t
*
buffer_back
;
#endif
SSD1306_TEXT_ALIGNMENT
textAlignment
=
TEXT_ALIGN_LEFT
;
SSD1306_COLOR
color
=
WHITE
;
SSD1306_TEXT_ALIGNMENT
textAlignment
=
TEXT_ALIGN_LEFT
;
SSD1306_COLOR
color
=
WHITE
;
const
char
*
fontData
=
ArialMT_Plain_10
;
const
char
*
fontData
=
ArialMT_Plain_10
;
// Send a command to the display (low level function)
void
sendCommand
(
unsigned
char
com
);
...
...
This diff is collapsed.
Click to expand it.
SSD1306Ui.h
+
14
−
9
View file @
b6857d34
...
...
@@ -192,9 +192,9 @@ class SSD1306Ui {
/**
* Draw the indicator.
* This is the defaut state for all frames if
* the indicator was hidden on the previous frame
* it will be slided in.
* This is the defaut state for all frames if
* the indicator was hidden on the previous frame
* it will be slided in.
*/
void
enableIndicator
();
...
...
@@ -247,17 +247,22 @@ class SSD1306Ui {
// Loading animation
/**
* Set the function that will draw each step
* in the loading animation
*/
/**
* Set the function that will draw each step
* in the loading animation
*/
void
setLoadingDrawFunction
(
LoadingDrawFunction
stage
);
/**
* Run the loading process
*/
void
runLoadingProcess
(
LoadingStage
*
stages
,
uint8_t
stagesCount
);
// Manuell Controll
void
nextFrame
();
void
previousFrame
();
void
nextFrame
();
void
previousFrame
();
// State Info
SSD1306UiState
*
getUiState
();
...
...
This diff is collapsed.
Click to expand it.
library.json
+
8
−
8
View file @
b6857d34
{
"name"
:
"ESP8266_SSD1306"
,
"version"
:
"3.0.0"
,
"version"
:
"3.0.0"
,
"keywords"
:
"ssd1306, oled, display, i2c"
,
"description"
:
"A I2C display driver for SSD1306 oled displays connected to an ESP8266"
,
"repository"
:
...
...
@@ -8,17 +8,17 @@
"type"
:
"git"
,
"url"
:
"https://github.com/squix78/esp8266-oled-ssd1306.git"
},
"authors"
:
[
{
"name"
:
"Daniel Eichhorn"
,
"email"
:
"squix78@gmail.com"
},
"authors"
:
[
{
"name"
:
"Daniel Eichhorn"
,
"email"
:
"squix78@gmail.com"
},
{
"name"
:
"Fabrice Weinberg"
,
"email"
:
"fabrice@weinberg.me"
}
],
],
"frameworks"
:
"arduino"
,
"platforms"
:
"espressif"
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment