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
Examples
Cogc
Cogc_Demo.cpp
Go to the documentation of this file.
1
26
#include <
PropWare/pin.h
>
27
37
int
main
() {
38
extern
unsigned
int
_load_start_blinky_cog[];
39
cognew(_load_start_blinky_cog, NULL);
40
41
PropWare::Pin
led
(
PropWare::Port::P16
,
PropWare::Port::OUT
);
42
while
(1) {
43
led
.toggle();
44
waitcnt(MILLISECOND * 100 + CNT);
45
}
46
}
PropWare::Pin
Utility class to handle general purpose I/O pins.
Definition:
pin.h:36
PropWare::Port::OUT
Definition:
port.h:81
PropWare::Port::P16
Definition:
port.h:57
pin.h
main
int main(void)
Definition:
GraphicsTest.c:20
led
void led(int n, int state)
Set a blue LED (from 0 to 5) to a state (ON or OFF). Examples: led(1, ON) turns the blue LED next to ...
Definition:
leds_led.c:9
Generated on Sat Aug 27 2016 00:58:03 for PropWare by
1.8.12