PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Utility
libsimpletools
libsimpletools.c
1
/*
2
* @file libsimpletools.c
3
*
4
* @author Andy Lindsay
5
*
6
* @copyright
7
* Copyright (C) Parallax, Inc. 2013-2017. All Rights MIT Licensed.
8
*
9
* @brief Project and test harness for the simpletools library.
10
*/
11
12
#include "
simpletools.h
"
13
#include "
simpletext.h
"
14
#include "
simplei2c.h
"
15
16
int
main
()
17
{
18
for
(
int
n = 0; n <= 1000; n++)
19
{
20
print
(
"n = %d\r"
, n);
21
high
(26);
22
pause
(n);
23
low
(26);
24
pause
(n);
25
}
26
return
0;
27
}
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
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,...
print
int print(const char *format,...) __attribute__((format(printf
Print format "..." args to the default simple terminal device. The output is limited to 256 bytes.
main
int main(void)
Definition:
GraphicsTest.c:20
simpletext.h
This library provides a collection of functions for communicating with text devices such as SimpleIDE...
simplei2c.h
Provides simple i2c start, stop, read, and write functions. See simpletools library for additional I2...
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:05 for PropWare by
1.8.17