Configuration ============= When the Panel Meter Clock is connected to a computer using the USB connector you can use a Serial Terminal program to connect to the clock's virtual serial COM port and configure the clocks settings. Pressing the ESC key will pause the clock and enter the Configuration Menu. Press one of the keys listed to select a menu item or press the 'q' key or ESC to exit from menu and resume the clock. .. code-block:: none Configuration Menu ======================== '?' Show help again 'h' Hour meter adjust 'm' Minute meter adjust 'i' Increase PWM 'd' Decrease PWM 'n' Next hour/minute PWM 'p' Previous hour/minute PWM 'c' change color mode 's' Sweep minutes 't' Set time 'l' Set location 'w' Write to EEPROM 'q' Quit menu Adjusting Hours > | `?` : Show help --------------- Pressing the `?` key will display the Configuration menu options. | `h` : Hour meter adjust ----------------------- The `h` key will allow you to adjust the PWM setting for each hour of the Hour meter. Use the `i` key to increase the PWM setting for the currently selected hour and the `d` key to decrease the currently selected hour's PWM setting. Decreasing the PWM setting will move the meters needle to the left while increasing the PWM setting will move the needle to the right. .. code-block:: none >h Adjusting Hours Adjusting hour: 0 pwm: 8 > | `m` : Minute meter adjust ------------------------- The `m` key will allow you to adjust the PWM setting of the Minute meter in five minute increments. Use the `i` key to increase the PWM setting for the currently selected minute and the `d` key to decrease the currently selected minute's PWM setting. Decreasing the PWM setting will move the meters needle to the left while increasing the PWM setting will move the needle to the right. .. code-block:: none >m Adjusting Minutes Adjusting Minute: 0 pwm: 8 > | `i` : Increase PWM ------------------ The `i` key will increase the PWM setting of the currently selected minute or hour. Increasing the PWM setting will move the needle to the right. .. code-block:: none Adjusting hour: 0 pwm: 8 >i Adjusting hour: 0 pwm: 9 > | `d` : Decrease PWM ------------------ The `d` key will decrease the PWM setting of the currently selected minute or hour. Decreasing the PWM setting will move the needle to the left. .. code-block:: none Adjusting hour: 0 pwm: 10 >d Adjusting hour: 0 pwm: 9 > | `n` : Next hour/minute PWM -------------------------- The `n` key will select the next hour in one-hour increments or the next minute in five-minute increments. .. code-block:: none Adjusting hour: 0 pwm: 9 >n Adjusting hour: 1 pwm: 27 > | `p` : Previous hour/minute PWM ------------------------------ The `p` key will select the previous hour in one-hour increments or the previous minute in five-minute increments. .. code-block:: none Adjusting hour: 5 pwm: 102 >p Adjusting hour: 4 pwm: 82 > | `c` : change color mode ----------------------- The `c` key will allow you to select the color mode of the NeoPixel. +--------+-------------+------------------------------------------------------------------+ | Mode 0 | No color | The NeoPixel will not light. | +--------+-------------+------------------------------------------------------------------+ | Mode 1 | Fixed color | You can set the color value for each of the red, green and blue | | | | leds from 0 to 255. | +--------+-------------+------------------------------------------------------------------+ | Mode 2 | Color Wheel | The NeoPixel will rotate slowly through the colors in the color | | | | wheel. | +--------+-------------+------------------------------------------------------------------+ | Mode 3 | Sky | The NeoPixel will be set to the color and relative brightness of | | | | the sky according to the calculated position of the sun. | +--------+-------------+------------------------------------------------------------------+ | Mode 4 | Sun | The NeoPixel will be set to the color and relative brightness of | | | | the sun according to the calculated position of the sun. | +--------+-------------+------------------------------------------------------------------+ .. code-block:: none >c Select color mode: 0 - None. 1 - Fixed Color. 2 - Color Wheel. 3 - Sky. 4 - Sun. ?1 Fixed Value for Red (0-255) ? 16 Value for Green (0-255) ? 0 Value for Blue (0-255) ? 0 Adjusting hour: 4 pwm: 82 > | `s` : Sweep minutes ------------------- The `s` key will sweep the needle of the MINUTE meter slowly through its range. | `t` : Set time -------------- The `t` key will allow you to set the clocks time, date, time zone offset and indicate if Daylight saving time is observed in the clocks location. Use 24-hour time for the hours. Use negative values for west time zones and positive values for east time zones. .. code-block:: none >t 2020-05-12T2:00:37 Enter new time or press ESC to quit. Hour (0-23) ? 21 Minute (0-59) ? 35 GMT offset (-West) ? -7 DST Observed (0-No,1-Yes) ? 1 4-digit year ? 2020 month ? 5 day ? 12 2020-05-12T21:35:00 Adjusting hour: 4 pwm: 82 > | `l` : Set location ------------------ The `l` key will allow you to set the Latitude and Longitude of your location. Use positive values for north latitudes and negative values for south latitudes. Use negative numbers for west longitudes and positive values for east longitudes. .. code-block:: none >l 2020-05-12T21:35:37 Enter new location or press ESC to quit. Latitude (+N)? 46.21831 Longitude (-W)? -119.23887 Adjusting hour: 4 pwm: 82 > | `w` : Write to EEPROM --------------------- The `w` key will write the current configuration to the EEPROM memory. .. code-block:: none >w // Your calibration values are: uint8_t HOURS_CAL[13] = { 8, 27, 45, 64, 82, 102, 119, 136, 154, 171, 190, 207, 227 }; int MINUTES_CAL[61] = { 96, 129, 162, 195, 228, 264, 296, 328, 360, 392, 428, 460, 492, 524, 556, 590, 622, 654, 686, 718, 754, 785, 816, 847, 878, 911, 943, 975, 1007, 1039, 1074, 1105, 1136, 1167, 1198, 1232, 1262, 1292, 1322, 1352, 1386, 1415, 1444, 1473, 1502, 1535, 1564, 1593, 1622, 1651, 1684, 1714, 1744, 1774, 1804, 1838, 1868, 1898, 1928, 1958, 1988 }; Adjusting hour: 0 pwm: 8 > | `q` : Quit menu --------------- .. code-block:: none >q Exiting menu... |