goodwatch/firmware/configtemplate.h
Travis Goodspeed 906f09fdef
Phonebook Applet (#154)
* Phonebook library for #144.

* Phonebook applet for #144.

* Phonebook now supports fall-through.  Now + is the next line, 0 is the next word. #144
2021-02-28 18:28:07 -05:00

55 lines
2.1 KiB
C

// You definitely want to uncomment and change this to your callsign.
//#define CALLSIGN "N0CALL"
// And maybe also your DAPNET RIC for POCSAG.
//#define DAPNETRIC 123456
// Timezone is needed for Beats app.
//#define CURRENT_UTC_OFFSET 4
// The core voltage should be 0 for a coin cell, 2 or 3 for quality power.
//#define COREVOLTAGE 3
// Uncomment this to emulate the SET button by holding + and - at once.
//#define EMULATESET
//Uncomment this to set the default RTC Calibration. Positive is slow, negative is fast.
#define RTCCALIBRATE -28
/* This array holds the entries triggered by numbered buttons in the
OOK applet. The first two bytes of each entry at MDMCFG4 and
MDMCFG3 to set the bitrate, followed by the packet to be
transmitted at that rate. See the GoodWatch wiki for details and
sample projects to reverse engineer these settings.
*/
#define OOKBUTTONS \
/* Magicfly doorbell first, 200us.*/ \
"\xf7\x93" "\x00\xe8\xe8\x88\x88\xee\x88\x8e\x88\xee\x8e\x88\xee\x80\x00\x00", \
/* Settings for the Eco-Worthy Digital Motor Controller, should be
~430us but ~340 works. */ \
"\x86\xd9" "\x00\xee\x8e\x8e\x8e\x8e\x8e\x8e\x8e\x88\x88\x88\xee\x80\x00\x00", \
"\x86\xd9" "\x00\xee\x8e\x8e\x8e\x8e\x8e\x8e\x8e\x88\x88\xee\x88\x80\x00\x00", \
"\x86\xd9" "\x00\xee\x8e\x8e\x8e\x8e\x8e\x8e\x8e\x88\xee\x88\x88\x80\x00\x00", \
"\x86\xd9" "\x00\xee\x8e\x8e\x8e\x8e\x8e\x8e\x8e\xee\x88\x88\x88\x80\x00\x00", \
/* No-name wireless relay controller. ~340us */ \
"\x86\xd9" "\x00\x00\xe8\xe8\xee\x88\xe8\x8e\xe8\x88\xee\xe8\x88\x8e\x80\x00", \
"\x86\xd9" "\x00\x00\xe8\xe8\xee\x88\xe8\x8e\xe8\x88\xee\xe8\x88\xe8\x80\x00", \
"\x86\xd9" "\x00\x00\xe8\xe8\xee\x88\xe8\x8e\xe8\x88\xee\xe8\x8e\x88\x80\x00", \
"\x86\xd9" "\x00\x00\xe8\xe8\xee\x88\xe8\x8e\xe8\x88\xee\xe8\xe8\x88\x80\x00"
/* This array holds the phonebook. Each line is one record, with the
0 button jumping to the next line and the +/- keys cycling between
the 8-byte words of the line.
*/
#define PHONEBOOK \
"Travis " "555-3811" "\n" \
"Bob 555" "555-0321" "\n" \
"AAA 800" "222-4357" "\n" \
"Last " "555-2358" "\n"