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
399b31ff
Commit
399b31ff
authored
8 years ago
by
0xPIT
Browse files
Options
Downloads
Patches
Plain Diff
change image data to be unsigned
parent
59e3d475
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
OLEDDisplayUi.cpp
+2
-2
2 additions, 2 deletions
OLEDDisplayUi.cpp
OLEDDisplayUi.h
+6
-6
6 additions, 6 deletions
OLEDDisplayUi.h
with
8 additions
and
8 deletions
OLEDDisplayUi.cpp
+
2
−
2
View file @
399b31ff
...
@@ -90,10 +90,10 @@ void OLEDDisplayUi::setIndicatorPosition(IndicatorPosition pos) {
...
@@ -90,10 +90,10 @@ void OLEDDisplayUi::setIndicatorPosition(IndicatorPosition pos) {
void
OLEDDisplayUi
::
setIndicatorDirection
(
IndicatorDirection
dir
)
{
void
OLEDDisplayUi
::
setIndicatorDirection
(
IndicatorDirection
dir
)
{
this
->
indicatorDirection
=
dir
;
this
->
indicatorDirection
=
dir
;
}
}
void
OLEDDisplayUi
::
setActiveSymbol
(
const
char
*
symbol
)
{
void
OLEDDisplayUi
::
setActiveSymbol
(
const
unsigned
char
*
symbol
)
{
this
->
activeSymbol
=
symbol
;
this
->
activeSymbol
=
symbol
;
}
}
void
OLEDDisplayUi
::
setInactiveSymbol
(
const
char
*
symbol
)
{
void
OLEDDisplayUi
::
setInactiveSymbol
(
const
unsigned
char
*
symbol
)
{
this
->
inactiveSymbol
=
symbol
;
this
->
inactiveSymbol
=
symbol
;
}
}
...
...
This diff is collapsed.
Click to expand it.
OLEDDisplayUi.h
+
6
−
6
View file @
399b31ff
...
@@ -61,11 +61,11 @@ enum FrameState {
...
@@ -61,11 +61,11 @@ enum FrameState {
};
};
const
char
ANIMATION_activeSymbol
[]
PROGMEM
=
{
const
unsigned
char
ANIMATION_activeSymbol
[]
PROGMEM
=
{
0x00
,
0x18
,
0x3c
,
0x7e
,
0x7e
,
0x3c
,
0x18
,
0x00
0x00
,
0x18
,
0x3c
,
0x7e
,
0x7e
,
0x3c
,
0x18
,
0x00
};
};
const
char
ANIMATION_inactiveSymbol
[]
PROGMEM
=
{
const
unsigned
char
ANIMATION_inactiveSymbol
[]
PROGMEM
=
{
0x00
,
0x0
,
0x0
,
0x18
,
0x18
,
0x0
,
0x0
,
0x00
0x00
,
0x0
,
0x0
,
0x18
,
0x18
,
0x0
,
0x0
,
0x00
};
};
...
@@ -106,8 +106,8 @@ class OLEDDisplayUi {
...
@@ -106,8 +106,8 @@ class OLEDDisplayUi {
IndicatorPosition
indicatorPosition
=
BOTTOM
;
IndicatorPosition
indicatorPosition
=
BOTTOM
;
IndicatorDirection
indicatorDirection
=
LEFT_RIGHT
;
IndicatorDirection
indicatorDirection
=
LEFT_RIGHT
;
const
char
*
activeSymbol
=
ANIMATION_activeSymbol
;
const
unsigned
char
*
activeSymbol
=
ANIMATION_activeSymbol
;
const
char
*
inactiveSymbol
=
ANIMATION_inactiveSymbol
;
const
unsigned
char
*
inactiveSymbol
=
ANIMATION_inactiveSymbol
;
bool
shouldDrawIndicators
=
true
;
bool
shouldDrawIndicators
=
true
;
...
@@ -240,12 +240,12 @@ class OLEDDisplayUi {
...
@@ -240,12 +240,12 @@ class OLEDDisplayUi {
/**
/**
* Set the symbol to indicate an active frame in the indicator bar.
* Set the symbol to indicate an active frame in the indicator bar.
*/
*/
void
setActiveSymbol
(
const
char
*
symbol
);
void
setActiveSymbol
(
const
unsigned
char
*
symbol
);
/**
/**
* Set the symbol to indicate an inactive frame in the indicator bar.
* Set the symbol to indicate an inactive frame in the indicator bar.
*/
*/
void
setInactiveSymbol
(
const
char
*
symbol
);
void
setInactiveSymbol
(
const
unsigned
char
*
symbol
);
// Frame settings
// Frame settings
...
...
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