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
Examples
Badge
05 EEPROM Data Storage
02 View First and Last 64 Bytes with Terminal.c
1
/*
2
View First and Last 64 Bytes with Terminal.c
3
You'll be using SimpleIDE Terminal for this one, so make sure to click
4
the Run with Terminal button to load the program. (That holds for all
5
the EEPROM activities.) After erasure, the values are set to 255, which
6
is hexadecimal 0xFF. The dev_ee_show function displays EEPRM byte values.
7
Values that are not standard character codes are displayed as hexadecimal
8
values.
9
*/
10
11
#include "simpletools.h"
// Include simpletools library
12
#include "
badgetools.h
"
// Include badgetools library
13
14
void
main
()
// Main function
15
{
16
badge_setup
();
// Call badge setup
17
18
text_size
(
SMALL
);
// Use SimpleIDE Terminal prompt
19
oledprint
(
"Use SimpleIDE\n"
);
20
oledprint
(
"Run w Terminal\n"
);
21
oledprint
(
"button.\n\n"
);
22
oledprint
(
"View data with\n"
);
23
oledprint
(
"SimpleIDE Term."
);
24
25
print(
"EEOPROM addresses 32768 to 32831\n"
);
// Display the memory
26
dev_ee_show
(64, 32768);
// This function does the work
27
print(
"\n\n"
);
// Repeat for 2nd range
28
print(
"EEOPROM addresses 65472 to 65535\n"
);
29
dev_ee_show
(64, 65535 - 64);
30
}
31
32
text_size
void text_size(int size)
Set the text size to either 32x16 pixel (LARGE) or 7x5 (SMALL) characters. Examples: text_size(LARGE)...
Definition:
oled_text_size.c:7
SMALL
#define SMALL
For setting oLED character size to 7x5 pixels. Example: text_size(SMALL).
Definition:
badgetools.h:200
dev_ee_show
void dev_ee_show(int byteCount, int address)
Display EEPROM contents as a combination of printable characters and numeric values (when not printab...
Definition:
peb_dev_ee_show.c:12
oledprint
int oledprint(const char *fmt,...)
Use to display strings on the oLED display in a manner similar to displaying combinations of strings ...
Definition:
peb_text.c:4
main
int main(void)
Definition:
GraphicsTest.c:20
badge_setup
int badge_setup(void)
Set up all available badge drivers. Call this function at the start of any given program to allow acc...
Definition:
badgealpha.c:29
badgetools.h
This library provides convenient functions for a variety of Parallax eBadge operations.
Generated on Sat Aug 27 2016 00:58:03 for PropWare by
1.8.12