PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Social
libbadgewxtools
peb_screen_image.c
1
#include "
simpletools.h
"
2
#include "
badgewxtools.h
"
3
4
volatile
screen
*
self
;
5
6
void
screen_image
(
char
*imgaddr)
7
{
8
uint32_t screenbuf = screen_getBuffer();
9
char
*scrbuf = (
char
*) screenbuf;
10
memcpy(scrbuf, imgaddr, 1024);
11
if
(self->AutoUpdate)
screen_update
();
12
}
13
14
/*
15
TERMS OF USE: MIT License
16
17
Permission is hereby granted, free of charge, to any person obtaining a
18
copy of this software and associated documentation files (the "Software"),
19
to deal in the Software without restriction, including without limitation
20
the rights to use, copy, modify, merge, publish, distribute, sublicense,
21
and/or sell copies of the Software, and to permit persons to whom the
22
Software is furnished to do so, subject to the following conditions:
23
24
The above copyright notice and this permission notice shall be included in
25
all copies or substantial portions of the Software.
26
27
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
30
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
32
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
33
DEALINGS IN THE SOFTWARE.
34
*/
35
badgewxtools.h
This library provides convenient functions for a variety of Parallax eBadge operations.
screen_image
void screen_image(char *imgaddr)
Display an image using an array holding an image generated by software that is compatible with the sc...
Definition:
peb_screen_image.c:6
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
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