PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Examples
Badge
01 Display
13 Shift Display.c
1
/*
2
Shift Display.c
3
Use a couple of the display's automatic image shifting features.
4
Although it should be possible to select which parts to shift from
5
15 slices of screen, currently only the (0, 15) entire screen setting
6
appears to work as expected.
7
*/
8
9
#include "
simpletools.h
"
// Include simpletools library
10
#include "
badgetools.h
"
// Include badgetools library
11
12
void
main
()
// Main function
13
{
14
badge_setup
();
// Call badge setup
15
oledprint
(
" BANNER TEXT"
);
// Something to shift
16
screen_scrollRight
(0, 15);
// Scroll left-right
17
pause
(9200);
// For 9.2 s
18
screen_scrollLeft
(0, 15);
// Reverse direction
19
pause
(9200);
// & go for another 9.2
20
screen_scrollStop
();
// Stop
21
}
22
23
pause
void pause(int time)
Delay cog from moving on to the next statement for a certain length of time.
Definition:
libws2812.c:125
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
screen_scrollStop
int screen_scrollStop(void)
Stop screen scrolling action.
Definition:
oled_scrollStop.c:7
main
int main(void)
Definition:
GraphicsTest.c:20
oledprint
int oledprint(const char *fmt,...)
Use to display strings on the oLED display in a manner similar to displaying combinations of strings ...
Definition:
peb_text.c:4
badge_setup
int badge_setup(void)
Set up all available badge drivers. Call this function at the start of any given program to allow acc...
Definition:
badgealpha.c:29
badgetools.h
This library provides convenient functions for a variety of Parallax eBadge operations.
screen_scrollLeft
int screen_scrollLeft(int scrollStart, int scrollStop)
Cause the screen to scroll to the left with screen_scrollLeft(0, 15).
screen_scrollRight
int screen_scrollRight(int scrollStart, int scrollStop)
Cause the screen to scroll to the right with screen_scrollRight(0, 15).
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17