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_clear.c
1
#include <stdlib.h>
2
#include <propeller.h>
3
#include "
badgetools.h
"
4
5
volatile
screen
*
self
;
6
7
int32_t
clear
(
void
)
8
{
9
// Clearing the display means just writing zeroes to the screen buffer.
10
memset( (
void
*)&self->buffer[0], 0, 1*(((self->displayWidth * self->displayHeight) / 8)));
11
// Clearing the display ALWAYS updates the display
12
// if (self->AutoUpdate) screen_update();
13
self
->crsrX = 0;
14
self
->crsrY = 0;
15
if
(self->AutoUpdate)
screen_update
();
16
return
0;
17
}
18
19
/*
20
TERMS OF USE: MIT License
21
22
Permission is hereby granted, free of charge, to any person obtaining a
23
copy of this software and associated documentation files (the "Software"),
24
to deal in the Software without restriction, including without limitation
25
the rights to use, copy, modify, merge, publish, distribute, sublicense,
26
and/or sell copies of the Software, and to permit persons to whom the
27
Software is furnished to do so, subject to the following conditions:
28
29
The above copyright notice and this permission notice shall be included in
30
all copies or substantial portions of the Software.
31
32
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
35
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
37
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
38
DEALINGS IN THE SOFTWARE.
39
*/
40
clear
int clear(void)
Clear the display.
Definition:
oled_clear.c:7
screen_update
int screen_update(void)
Manually update the screen image after. Typically used after multiple oLED function calls after scree...
Definition:
oled_asmfast.c:426
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