45 #include <avr/pgmspace.h>
62 extern uint8_t ping_response;
63 extern bool ping_mode;
64 extern bool timeout_flag;
65 extern bool temp_flag;
66 extern bool auto_temp;
68 char top_menu_text[20];
70 #define EEPROM_DEBUG_ADDR 0
86 void menu_send_temp(
void);
void menu_display_temp(void)
This will display the temperature in degrees F or C.
void menu_ping_request(uint8_t *val)
This will setup a ping request command to the 1284p and reset the ping counter.
uint8_t right
Contains next menu position for right.
void menu_debug_mode(uint8_t *val)
This will enable or disable the JTAG debug interface to allow for proper temperature sensor readings...
uint8_t left
Contains next menu position for left.
tmenufunc enter_func
Pointer to function to call when enter button is pressed.
uint8_t up
Contains next menu position for up.
void menu_clear_temp(void)
This will clear the temperature displayed in the 4 digit LCD segments.
void menu_stop_ping(void)
This will stop the ping request.
uint8_t * signed_dectoascii(int16_t n, uint8_t *str)
This will convert a signed decimal number to ASCII.
void menu_run_doze(uint8_t *val)
This will start a sleep with wakes for temperature measurement and web requests.
const uint32_t OIDSupportedList[] PROGMEM
List of supported RNDIS OID's.
void menu_prepare_temp(uint8_t *val)
This will setup the current temperature for transfer to the ATmega1284p via a binary command transfer...
uint8_t * state
State variable used as argument for menu enter function.
void eeprom_init(void)
Initialize the EEPROM module.
void dectoascii(uint8_t val, char *str)
This function will convert decimal to ascii.
void menu_run_sleep(uint8_t *val)
This will start a sleep operation.
uint8_t menu_send_ping(void)
This will send the ping request to the 1284p via the serial port.
uint8_t down
Contains next menu position for down.
void menu_read_temp(uint8_t *val)
This will display the temperature in degrees F or C.
const char *PROGMEM text
Menu text to display.
This structure defines the joystick operation within the menu_items[].
void menu_stop_temp(void)
This will stop the auto sending of temperature data.
void(* tmenufunc)(uint8_t *)
Pointer to function, used to dispatch a menu-driven function.