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
propsideworkspace
Learn
Simple Libraries
Social
libbadgetools
peb_eeprint.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
12
int
eeprint
(
const
char
*fmt, ...)
13
{
14
//rgb(L, RED);
15
char
buf[128];
16
va_list args;
18
va_start(args, fmt);
20
_dosprnt(fmt, args, buf);
21
va_end(args);
23
//stringView(buf, len);
24
int
rec =
store
(buf);
25
return
rec - 1;
26
//rgb(L, OFF);
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
store
int store(char *contact)
Store a character string of up to 128 characters to EEPROM. Example: char s[] = "abcd"; store(s);...
Definition:
peb_store.c:12
badgetools.h
This library provides convenient functions for a variety of Parallax eBadge operations.
eeprint
int eeprint(const char *fmt,...)
Use to store strings to EEPROM in a manner similar to displaying combinations of strings and variable...
Definition:
peb_eeprint.c:12
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12