PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Simple-Libraries
Learn
Simple Libraries
Social
libbadgewxtools
peb_ee_displayIndex.c
1
#include "
simpletools.h
"
2
#include "
badgewxtools.h
"
3
4
int
i2cLock;
5
volatile
int
eei2cLock;
6
volatile
int
eei2cLockFlag;
7
volatile
int
eeRecCount, eeNextAddr, eeBadgeOk,
8
eeNext, eeRecsAddr, eeRecs,
9
eeRecHome, eeRecOffice;
10
volatile
int
eeHome;
11
12
void
ee_displayIndex(
int
start,
int
end,
int
increment)
13
{
14
for
(
int
i = start; i >= end; i+=increment)
15
{
16
int
a =
ee_getInt
(i);
17
int
ss = a >> 16;
18
a &= 0x0000FFFF;
19
printi
(
"i = %d, a = %d, ss = %d\n"
, i, a, ss);
20
}
21
}
22
23
/*
24
TERMS OF USE: MIT License
25
26
Permission is hereby granted, free of charge, to any person obtaining a
27
copy of this software and associated documentation files (the "Software"),
28
to deal in the Software without restriction, including without limitation
29
the rights to use, copy, modify, merge, publish, distribute, sublicense,
30
and/or sell copies of the Software, and to permit persons to whom the
31
Software is furnished to do so, subject to the following conditions:
32
33
The above copyright notice and this permission notice shall be included in
34
all copies or substantial portions of the Software.
35
36
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
39
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
42
DEALINGS IN THE SOFTWARE.
43
*/
44
badgewxtools.h
This library provides convenient functions for a variety of Parallax eBadge operations.
ee_getInt
int ee_getInt(int addr)
Get an int value from a certain address in the Propeller Chip's dedicated EEPROM. If you are fetching...
Definition:
eeprom_getInt.c:24
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
printi
int printi(const char *format,...) __attribute__((format(printf
Print integer and char only format "..." args to the default simple terminal device....
Generated on Fri May 20 2022 16:48:05 for PropWare by
1.8.17