PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
propsideworkspace
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
screen_scrollLeft
int screen_scrollLeft(int scrollStart, int scrollStop)
Cause the screen to scroll to the left with screen_scrollLeft(0, 15).
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
main
int main(void)
Definition:
GraphicsTest.c:20
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
screen_scrollStop
int screen_scrollStop(void)
Stop screen scrolling action.
Definition:
oled_scrollStop.c:7
screen_scrollRight
int screen_scrollRight(int scrollStart, int scrollStop)
Cause the screen to scroll to the right with screen_scrollRight(0, 15).
badgetools.h
This library provides convenient functions for a variety of Parallax eBadge operations.
Generated on Sat Aug 27 2016 00:58:03 for PropWare by
1.8.12