and option default pins to the pins.h file

This commit is contained in:
Kevin Matz 2021-02-11 11:28:56 -05:00
parent 8c7e48c856
commit adf99b99f2
2 changed files with 10 additions and 2 deletions

View File

@ -81,13 +81,15 @@ bool loadConfig() {
settings.osc_released_value = prefs_.getString("osc_released_value", "99.2");
settings.strobe_enable = prefs_.getBool("strobe_enable", true);
settings.strobe_led_pin = prefs_.getUChar("strobe_led_pin", LED_BUILTIN); // IO13
settings.strobe_led_pin = prefs_.getUChar("strobe_led_pin",
pin_default_strobe);
settings.strobe_universe = prefs_.getUShort("strobe_universe", 1);
settings.strobe_address = prefs_.getUShort("strobe_address", 001);
settings.strip_enable = prefs_.getBool("strip_enable", false);
settings.strip_led_count = prefs_.getUShort("strip_led_count", 8); // not less than 4
settings.strip_data_pin = prefs_.getUChar("strip_data_pin", 21);
settings.strip_data_pin = prefs_.getUChar("strip_data_pin",
pin_default_strip);
settings.strip_universe = prefs_.getUShort("strip_universe", 1);
settings.strip_address = prefs_.getUShort("strip_address", 001);

View File

@ -40,3 +40,9 @@ const uint8_t pin_reset_button = A1; // tie A1 to ground to reset preferances
Attach this pin to an LED for a heartbeat indicator.
*/
const uint8_t pin_heartbeat_led = LED_BUILTIN;
/*
Default pinout of optional light fixtures
*/
const uint8_t pin_default_strobe = 14;
const uint8_t pin_default_strip = 21;