PropWare  3.0.0.229
C++ objects and CMake build system for Parallax Propeller
peb_contacts_displayAll.c
1 #include "simpletools.h"
2 #include "badgetools.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 
13 {
14  if(!eeBadgeOk) ee_badgeCheck();
15  int numRecs = contacts_count();
16  printi("Record count = %d\n\n", numRecs);
17  //pause(1000);
18  char s[128];
19  memset(s, 0, 128);
20  for(int i = 0; i < numRecs; i++)
21  {
22  //eescan(i, "%s\n", s);
23  retrieve(s, i);
24  printi("%s\n", s);
25  }
26 }
27 
28 
29 /*
30  TERMS OF USE: MIT License
31 
32  Permission is hereby granted, free of charge, to any person obtaining a
33  copy of this software and associated documentation files (the "Software"),
34  to deal in the Software without restriction, including without limitation
35  the rights to use, copy, modify, merge, publish, distribute, sublicense,
36  and/or sell copies of the Software, and to permit persons to whom the
37  Software is furnished to do so, subject to the following conditions:
38 
39  The above copyright notice and this permission notice shall be included in
40  all copies or substantial portions of the Software.
41 
42  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
43  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
44  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
45  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
46  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
47  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
48  DEALINGS IN THE SOFTWARE.
49 */
50 
contacts_displayAll
void contacts_displayAll()
Display all contacts in SimpleIDE Terminal.
Definition: peb_contacts_displayAll.c:12
contacts_count
int contacts_count()
Find out how many contacts are currently stored in EEPROM. This is useful for setting up a loop to fe...
Definition: peb_contacts_count.c:11
simpletools.h
This library provides convenient functions for a variety of microcontroller I/O, timing,...
retrieve
void retrieve(char *contact, int recIdx)
Copy string with a certain index number from EEPROM to a character array.
Definition: peb_retrieve.c:12
badgetools.h
This library provides convenient functions for a variety of Parallax eBadge operations.
printi
int printi(const char *format,...) __attribute__((format(printf
Print integer and char only format "..." args to the default simple terminal device....