6 #ifndef _TESTFIXTURES_H_
7 #define _TESTFIXTURES_H_
9 #include <PlatformDetermination.h>
10 #include "../tcMenu.h"
11 #include "../RuntimeMenuItem.h"
24 #ifndef PRESSMECALLBACK
25 #define PRESSMECALLBACK NULL
28 const PROGMEM
AnalogMenuInfo minfoCaseTemp = {
"Case Temp", 103, 0xffff, 255, NO_CALLBACK, 0, 2,
"C" };
31 const PROGMEM
FloatMenuInfo minfoFloatItem = {
"FloatItem", 102, 0xffff, 4, NO_CALLBACK };
33 const PROGMEM
AnyMenuInfo minfoPressMe = {
"Press Me", 101, 0xffff, 0, PRESSMECALLBACK };
36 RENDERING_CALLBACK_NAME_INVOKE(backSubSecondLevelFn,
backSubItemRenderFn,
"Second Level", 0xffff, NULL)
37 BackMenuItem menuBackSecondLevel(backSubSecondLevelFn, &menuPressMe);
38 const PROGMEM
SubMenuInfo minfoSecondLevel = {
"SecondLevel", 100, 0xffff, 0, NO_CALLBACK };
39 SubMenuItem menuSecondLevel(&minfoSecondLevel, &menuBackSecondLevel, &menuCaseTemp);
41 const PROGMEM
AnalogMenuInfo minfoRHSTemp = {
"R HS Temp", 8, 0xffff, 255, NO_CALLBACK, 0, 2,
"C" };
43 const PROGMEM
AnalogMenuInfo minfoLHSTemp = {
"L HS Temp", 7, 0xffff, 255, NO_CALLBACK, 0, 2,
"C" };
45 RENDERING_CALLBACK_NAME_INVOKE(backSubStatusFn,
backSubItemRenderFn,
"Status", 0xffff, NULL)
46 BackMenuItem menuBackStatus(backSubStatusFn, &menuLHSTemp);
47 const PROGMEM
SubMenuInfo minfoStatus = {
"Status", 5, 0xffff, 0, NO_CALLBACK };
48 SubMenuItem menuStatus(&minfoStatus, &menuBackStatus, NULL);
49 const PROGMEM
AnalogMenuInfo minfoContrast = {
"Contrast", 10, 6, 255, NO_CALLBACK, 0, 2,
"" };
53 RENDERING_CALLBACK_NAME_INVOKE(backSubSettingsFn,
backSubItemRenderFn,
"Settings", 0xffff, NULL)
54 BackMenuItem menuBackSettings(backSubSettingsFn, &menu12VStandby);
55 const PROGMEM
SubMenuInfo minfoSettings = {
"Settings", 3, 0xffff, 0, NO_CALLBACK };
56 SubMenuItem menuSettings(&minfoSettings, &menuBackSettings, &menuStatus);
57 const char enumStrChannel_0[] PROGMEM =
"CD Player";
58 const char enumStrChannel_1[] PROGMEM =
"Turntable";
59 const char enumStrChannel_2[] PROGMEM =
"Computer";
60 const char*
const enumStrChannel[] PROGMEM = { enumStrChannel_0, enumStrChannel_1, enumStrChannel_2 };
61 const PROGMEM
EnumMenuInfo minfoChannel = {
"Channel", 2, 4, 2, NO_CALLBACK, enumStrChannel };
62 EnumMenuItem menuChannel(&minfoChannel, 0, &menuSettings);
63 const PROGMEM
AnalogMenuInfo minfoVolume = {
"Volume", 1, 2, 255, NO_CALLBACK, -190, 2,
"dB" };
72 const PROGMEM
AnalogMenuInfo minfoSimple2 = {
"simple2", 1, 2, 255, NO_CALLBACK, -190, 2,
"dB" };
74 const PROGMEM
AnalogMenuInfo minfoSimple1 = {
"simple1", 1, 2, 255, NO_CALLBACK, -190, 2,
"dB" };