PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
propsideworkspace
Learn
Simple Libraries
Social
libbadgetools
oled_invert.c
1
#include <stdlib.h>
2
#include <propeller.h>
3
#include "
badgetools.h
"
4
5
volatile
screen
*
self
;
6
7
void
invert
(
int
i)
8
{
9
// This in an OLED command that inverts the display. Probably faster
10
// than complimenting the screen buffer.
11
if
(i) {
12
screen_ssd1306_Command(SSD1306_INVERTDISPLAY);
13
}
else
{
14
screen_ssd1306_Command(SSD1306_NORMALDISPLAY);
15
}
16
//if (self->AutoUpdate) screen_update();
17
//return 0;
18
}
19
20
/*
21
TERMS OF USE: MIT License
22
23
Permission is hereby granted, free of charge, to any person obtaining a
24
copy of this software and associated documentation files (the "Software"),
25
to deal in the Software without restriction, including without limitation
26
the rights to use, copy, modify, merge, publish, distribute, sublicense,
27
and/or sell copies of the Software, and to permit persons to whom the
28
Software is furnished to do so, subject to the following conditions:
29
30
The above copyright notice and this permission notice shall be included in
31
all copies or substantial portions of the Software.
32
33
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
35
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
36
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
37
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
38
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
39
DEALINGS IN THE SOFTWARE.
40
*/
41
invert
void invert(int i)
Invert (or not) the pixel colors in the display. Use invert(0) for white pixels on a black background...
Definition:
oled_invert.c:7
screen
Definition:
badgetools.h:1610
badgetools.h
This library provides convenient functions for a variety of Parallax eBadge operations.
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12