PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Social
libbadgewxtools
oled_string8x1.c
1
#include <stdlib.h>
2
#include <propeller.h>
3
#include "
badgewxtools.h
"
4
5
volatile
screen
*
self
;
6
7
void
screen_string8x1(
char
*str, int32_t len)
8
{
9
int32_t i;
10
// Write a string on the display starting at position zero (left)
11
{
12
int32_t _limit__0043 = ((Min__(len, SSD1306_LCDCHARMAX)) - 1);
13
int32_t _step__0044 = 1;
14
i = 0;
15
if
(i >= _limit__0043) _step__0044 = -_step__0044;
16
do
{
17
screen_char32x16(((uint8_t *)str)[i], 0, i);
18
i = i + _step__0044;
19
}
while
(((_step__0044 > 0) && (i <= _limit__0043)) || ((_step__0044 < 0) && (i >= _limit__0043)));
20
}
21
if
(self->AutoUpdate)
screen_update
();
22
}
23
24
/*
25
TERMS OF USE: MIT License
26
27
Permission is hereby granted, free of charge, to any person obtaining a
28
copy of this software and associated documentation files (the "Software"),
29
to deal in the Software without restriction, including without limitation
30
the rights to use, copy, modify, merge, publish, distribute, sublicense,
31
and/or sell copies of the Software, and to permit persons to whom the
32
Software is furnished to do so, subject to the following conditions:
33
34
The above copyright notice and this permission notice shall be included in
35
all copies or substantial portions of the Software.
36
37
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
40
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
43
DEALINGS IN THE SOFTWARE.
44
*/
45
badgewxtools.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