PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Social
libbadgetools
oled_string.c
1
#include <stdlib.h>
2
#include <propeller.h>
3
#include "
badgetools.h
"
4
5
volatile
screen
*
self
;
6
7
void
string
(
char
*str)
8
{
9
if
(self->charSize ==
LARGE
)
10
{
11
screen_string8x2(str, strlen(str), self->crsrY, self->crsrX);
12
}
13
else
14
{
15
screen_string16x4(str, strlen(str), self->crsrY, self->crsrX);
16
}
17
if
(self->AutoUpdate)
screen_update
();
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
LARGE
#define LARGE
For setting oLED character size to 32x16 pixels. Example: text_size(LARGE).
Definition:
badgetools.h:192
string
void string(char *str)
Display a character string on the oLED display.
Definition:
oled_string.c:7
badgetools.h
This library provides convenient functions for a variety of Parallax eBadge operations.
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:1709
Generated on Fri May 20 2022 16:48:05 for PropWare by
1.8.17