PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Examples
Devices
Display
ePaper Count Down.c
1
/*
2
ePaper Count Down.c
3
*/
4
5
// ------ Libraries and Definitions ------
6
#include "
simpletools.h
"
7
#include "il3820.h"
8
9
// ------ Global Variables and Objects ------
10
screen
*ePaper;
11
int
item;
12
13
14
15
// ------ Main Program ------
16
int
main
() {
17
ePaper = il3820_init(11, 10, 9, 8, 7, 6, 128, 296);
18
setTextColor(ePaper, 0);
19
setBgColor(ePaper, 1);
20
clearDisplay(ePaper);
21
for
(item = 100; item >= 1; item--)
22
{
23
setCursor(ePaper, 0, 0, 0);
24
drawNumber(ePaper, item, DEC);
25
updateDisplay(ePaper);
26
pause
(1000);
27
clearDisplay(ePaper);
28
}
29
}
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,...
main
int main(void)
Definition:
GraphicsTest.c:20
screen
Definition:
badgetools.h:1709
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17