PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Examples
Circuits
Blink Light.c
1
/*
2
Blink Light.c
3
4
Blink light circuit connected to P26.
5
6
http://learn.parallax.com/propeller-c-simple-circuits/blink-light
7
*/
8
9
#include "
simpletools.h
"
// Include simpletools
10
11
int
main
()
// main function
12
{
13
while
(1)
// Endless loop
14
{
15
high
(26);
// Set P26 I/O pin high
16
pause
(100);
// Wait 1/10 second
17
low
(26);
// Set P26 I/O pin low
18
pause
(100);
// Wait another 1/10 second
19
}
20
}
pause
void pause(int time)
Delay cog from moving on to the next statement for a certain length of time.
Definition:
libws2812.c:125
low
void low(int pin)
Set an I/O pin to output-low.
Definition:
low.c:19
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
main
int main(void)
Definition:
GraphicsTest.c:20
high
void high(int pin)
Set an I/O pin to output-high.
Definition:
high.c:19
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17