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