Green shading in the line number column means the source is part of the translation unit, red means it is conditionally excluded. Highlighted line numbers link to the translation unit page. Highlighted macros link to the macro page.
1: // This file contains the DCC and LED definitions. 2: // 3: // It was automatically generated by the program ProgGenerator Ver. 3.3.2G by Hardi 4: // File creation: 05/04/25 15:25:19 5: // (Attention: The display in the Arduino IDE is not updated if Options/External Editor is disabled) 6: 7: #ifndef __LEDS_AUTOPROG_H__ 8: #define __LEDS_AUTOPROG_H__ 9: 10: #ifndef CONFIG_ONLY 11: #ifndef ARDUINO_RASPBERRY_PI_PICO 12: #ifndef FASTLED_ESP32_I2S 13: #define FASTLED_INTERNAL // Disable version number message in FastLED library (looks like an error) 14: #endif 15: #include <FastLED.h> // The FastLED library must be installed in addition if you got the error message "..fatal error: FastLED.h: No such file or directory" 16: // Arduino IDE: Sketch / Include library / Manage libraries Deutsche IDE: Sketch / Bibliothek einbinden / Bibliothek verwalten 17: // Type "FastLED" in the "Filter your search..." field "FastLED" in das "Grenzen Sie ihre Suche ein" Feld eingeben 18: // Select the entry and click "Install" Gefundenen Eintrag auswaehlen und "Install" anklicken 19: #else 20: #include <PicoFastLED.h> // Juergens minimum version or FastLED for Raspberry Pico 21: #endif 22: #endif // CONFIG_ONLY 23: 24: #include <MobaLedLib.h> 25: 26: #define START_MSG "LEDs_AutoProg Ver 3: PICO 3.3.2G 05.04.25 15:25" 27: 28: #define TWO_BUTTONS_PER_ADDRESS 1 // Two buttons (Red/Green) are used (DCC/LNet/CAN) 29: #ifdef NUM_LEDS 30: #warning "'NUM_LEDS' definition in the main program is replaced by the included 'LEDs_AutoProg.h' with 28" 31: #undef NUM_LEDS 32: #endif 33: 34: #define NUM_LEDS 28 // Number of LEDs (Maximal 256 RGB LEDs could be used) 35: 36: #define LEDS_PER_CHANNEL ",28" 37: 38: #define USE_PROTOCOL_DCC 39: 40: #define RECEIVE_LED_COLOR_PER_RS232 41: 42: #define GEN_BUTTON_RELEASE 43: #define GEN_BUTTON_RELEASE_COM GEN_OFF 44: // Input channel defines for local inputs and expert users 45: 46: 47: 48: #define TOTAL_SWITCHES_A 0 // Number of used inputs for analog keyboard 49: #define TOTAL_SWITCHES_B 0 // Number of used inputs for keyboard 1 50: #define TOTAL_SWITCHES_C 0 // Number of used inputs for keyboard 2 51: #define TOTAL_SWITCHES_D 0 // Number of used inputs for main board switches 52: #define TOTAL_VARIABLES 1 // Number of used variables 53: /*********************/ 54: #define SETUP_FASTLED() \ 55: /*********************/ \ 56: CLEDController& controller0 = FastLED.addLeds<NEOPIXEL, 0>(leds+ 0, 28); \ 57: \ 58: controller0.clearLeds(256); \ 59: FastLED.setDither(DISABLE_DITHER); // avoid sending slightly modified brightness values 60: /*End*/ 61: 62: 63: 64: //******************************************************************* 65: // *** Configuration array which defines the behavior of the LEDs *** 66: MobaLedLib_Configuration() 67: { 68: HouseT(0, SI_1, 2, 5, 5, 15, ROOM_DARK, ROOM_WARM_W, NEON_LIGHT, NEON_LIGHTD, GAS_LIGHT2, CANDLE, ROOM_RED) /* Excel row 11 */ 69: HouseT(7, SI_1, 2, 5, 5, 15, ROOM_DARK, ROOM_WARM_W, NEON_LIGHT, NEON_LIGHTD, GAS_LIGHT2, CANDLE, ROOM_RED) /* Excel row 12 */ 70: HouseT(14, SI_1, 2, 3, 5, 15, ROOM_DARK, ROOM_WARM_W, NEON_LIGHT, NEON_LIGHTD, GAS_LIGHT2, NEON_LIGHT, NEON_LIGHT, NEON_LIGHT, NEON_LIGHT, NEON_LIGHT, NEON_LIGHT, NEON_LIGHT, NEON_LIGHT, NEON_LIGHT) /* Excel row 13 */ 71: 72: EndCfg // End of the configuration 73: }; 74: //******************************************************************* 75: 76: #ifndef COPYLED_OFF 77: #define COPYLED_OFF 0 78: #endif 79: 80: #ifndef COPYLED_OFF_ONCE 81: #define COPYLED_OFF_ONCE 1 82: #endif 83: 84: //--------------------------------------------- 85: void Set_Start_Values(MobaLedLib_C &MobaLedLib) 86: //--------------------------------------------- 87: { 88: } 89: 90: 91: // No macros used which are stored to the EEPROM => Disable the ENABLE_STORE_STATUS flag in case it was set in the excel sheet 92: #ifdef ENABLE_STORE_STATUS 93: #undef ENABLE_STORE_STATUS 94: #endif 95: 96: #ifndef CONFIG_ONLY 97: #endif // CONFIG_ONLY 98: 99: 100: 101: 102: 103: #endif // __LEDS_AUTOPROG_H__ 104: