diff --git a/firmware/main.c b/firmware/main.c index 209ceb5..56bbef5 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -42,16 +42,17 @@ const char help_03[] PROGMEM = "\tpower show power state\n" const char help_04[] PROGMEM = "\tpower on switch power on\n"; const char help_05[] PROGMEM = "\tpower off switch power off\n"; const char help_06[] PROGMEM = "\tfan show fan speed\n"; -const char help_07[] PROGMEM = "\tmode show current mode\n"; -const char help_08[] PROGMEM = "\tmode N select mode\n"; -const char help_09[] PROGMEM = "\tch X Y show channel [1-2].[1-5] brightness\n"; -const char help_10[] PROGMEM = "\tch X Y Z set channel [1-2].[1-5] brightness [0-255]\n"; -const char help_11[] PROGMEM = "\tir learn power learn the IR command to power on/off\n"; -const char help_12[] PROGMEM = "\tir learn mode learn the IR command to change between modes\n"; -const char help_13[] PROGMEM = "\tir learn brightness up learn the IR command to increase brightness\n"; -const char help_14[] PROGMEM = "\tir learn brightness down learn the IR command to decrease brightness\n"; -const char help_15[] PROGMEM = "\tir learn channel next learn the IR command to select next channel\n"; -const char help_16[] PROGMEM = "\tir learn channel previous learn the IR command to select previous channel\n"; +const char help_07[] PROGMEM = "\ttemp show temperature\n"; +const char help_08[] PROGMEM = "\tmode show current mode\n"; +const char help_09[] PROGMEM = "\tmode N select mode\n"; +const char help_10[] PROGMEM = "\tch X Y show channel [1-2].[1-5] brightness\n"; +const char help_11[] PROGMEM = "\tch X Y Z set channel [1-2].[1-5] brightness [0-255]\n"; +const char help_12[] PROGMEM = "\tir learn power learn the IR command to power on/off\n"; +const char help_13[] PROGMEM = "\tir learn mode learn the IR command to change between modes\n"; +const char help_14[] PROGMEM = "\tir learn brightness up learn the IR command to increase brightness\n"; +const char help_15[] PROGMEM = "\tir learn brightness down learn the IR command to decrease brightness\n"; +const char help_16[] PROGMEM = "\tir learn channel next learn the IR command to select next channel\n"; +const char help_17[] PROGMEM = "\tir learn channel previous learn the IR command to select previous channel\n"; PGM_P const help_table[] PROGMEM = { help_00, help_01, @@ -69,7 +70,8 @@ PGM_P const help_table[] PROGMEM = { help_13, help_14, help_15, - help_16 + help_16, + help_17 }; //volatile uint8_t* PORTS[CHANNELS_1+CHANNELS_2] = {&PORTC,&PORTC,&PORTC,&PORTC,&PORTC,&PORTD,&PORTD,&PORTD,&PORTD,&PORTD}; @@ -276,6 +278,18 @@ void ioinit(void) TIFR0 = (1<