|
| 1 | +void setup() // ARDUINO Setup |
| 2 | +void loop() // ARDUINO Loop |
| 3 | +void CheckDevices(void) // COMMON Check connected input devices |
| 4 | +void EverySecondCheck(void) // COMMON Update routine done every second |
| 5 | +void EveryMinuteUpdate(void) // COMMON Update routine done every minute |
| 6 | +void EveryHourUpdate(void) // COMMON Update routine done every hour |
| 7 | +void EveryDayUpdate(void) // COMMON Update routine done every day |
| 8 | +void UpdateStatusLEDs(int Toggle) // COMMON Update routine for the status LEDs |
| 9 | +void SetStatusLED(int Red, int Green, int Blue) // COMMON Control the RGB LEDs on the Nano ESP32 |
| 10 | +void SetNanoLED13(int intensity) // COMMON Control orange LED D13 on the Arduino |
| 11 | +void SetPCBLED09(int intensity) // COMMON Control the RGB LED on the PCB |
| 12 | +void SetPCBLED10(int intensity) // COMMON Control the RGB LED on the PCB |
| 13 | +void SerialCheck(void) // COMMON check for serial input |
| 14 | +void Reset(void) // COMMON Reset to default settings. BLE On, WIFI NTP Off |
| 15 | +void ResetCredentials(void) // COMMON Reset to empty credential settings WIFI, NTP, BLE ON |
| 16 | +void Tekstprint(char const *tekst) // COMMON common print routines |
| 17 | +void Tekstprintln(char const *tekst) // COMMON common print routines |
| 18 | +void TekstSprint(char const *tekst) // COMMON common print routines |
| 19 | +void TekstSprintln(char const *tekst) // COMMON common print routines |
| 20 | +void Tekstprintf(const char* fmt, ...) // COMMON Tekstprintf("Log buffer allocated: %u bytes\n", (unsigned) LogBufferSize); |
| 21 | +void Tekstprintlnf(const char* fmt, ...) // COMMON Tekstprintlnf("Log buffer allocated: %u bytes", (unsigned) LogBufferSize); |
| 22 | +void WTekstappend(char const *tekst, char const *prefixtekst, char const *suffixtekst, bool newline) |
| 23 | +void WTekstprintln(char const *tekst) // COMMON Print web menu page and BLE menu |
| 24 | +void WTekstprintln(char const *tekst, char const *prefixtekst, char const *suffixtekst) |
| 25 | +void WTekstprint(char const *tekst) // COMMON Print web menu page and BLE menu |
| 26 | +void WTekstprint(char const *tekst, char const *prefixtekst, char const *suffixtekst) |
| 27 | +int SConstrainInt(String s,byte first,byte last,int low,int up) // COMMON Constrain a string with integers |
| 28 | +int SConstrainInt(int SConstrainInt(String s,byte first,int low,int up) // COMMON Constrain a string with integers |
| 29 | +void InitStorage(void) // COMMON Init and check contents of EEPROM |
| 30 | +void StoreStructInFlashMemory(void) // COMMON Store mem.struct in FlashStorage or SD |
| 31 | +void GetStructFromFlashMemory(void) // COMMON Get data from FlashStorage |
| 32 | +const char* SoftwareName(void) // COMMON Print Software naam without path |
| 33 | +void SWversion(void) // COMMON Version info |
| 34 | +void SWversion(bool small) // COMMON small Version info |
| 35 | +void PrintLine(byte Lengte) // COMMON PrintLine |
| 36 | +void ReworkInputString(String InputString) // COMMON Input from Bluetooth, Serial or HTML page |
| 37 | +void PrintDisplayChoice() // COMMON Print Display choice with Printit is TRUE |
| 38 | +void PrintDisplayChoice(bool PrintIt) // COMMON Print Display choice |
| 39 | +void PrintTimeInputMethod(byte Im) // COMMON Print time input method. Rotary, Membrane or IR-remote |
| 40 | +void PrintMem(void) // COMMON Print permanent Mem memory |
| 41 | +void printHeaps(void) // COMMON Print memory space |
| 42 | +int ReadLDR(void) // LDR reading are between 0 and 255. |
| 43 | +void SetSecondColour(void) // CLOCK Set second colour |
| 44 | +void SetColours(void) // CLOCK Set second for 4 language clock |
| 45 | +void Selftest(void) // CLOCK Self test sequence |
| 46 | +void Selftest(int Delayms) // CLOCK Self test sequence |
| 47 | +void Displaytime() // CLOCK Say the time and load the LEDs |
| 48 | +void DimLeds(bool print) // CLOCK Dim the leds measured by the LDR and print values |
| 49 | +void Play_Lights() // CLOCK Turn On en Off the LED's |
| 50 | +void BlinkUUR(int NoofBlinks, int Delayms) // CLOCK Blink UUR |
| 51 | +void BlinkHETISWAS (int NoofBlinks, int Delayms) // CLOCK Blink HET IS WAS |
| 52 | +void BlinkTWAALF(int NoofBlinks, int Delayms) // CLOCK Blink TWAALF |
| 53 | +void ColorLeds(char const *Tekst, int FirstLed, int LastLed, uint32_t RGBWColor)// LED Set color for LEDs in strip and print tekst |
| 54 | +void ColorLed(int Lednr, uint32_t RGBWColor) // LED Set color for one LED |
| 55 | +void LedsOff(void) // LED Clear display settings of the LEDs |
| 56 | +void Laatzien(int Delaymsec) // LED Turn On and the LED's Off after Delaymsec milliseconds |
| 57 | +void ShowLeds(void) // LED Push data in LED strip to commit the changes |
| 58 | +void SetBrightnessLeds(byte Bright) // LED Set brighness of LEDs |
| 59 | +void Stripfill(uint32_t RGBWColor, int FirstLed, int NoofLEDs) // LED Fill the strip array |
| 60 | +uint32_t StripGetPixelColor(int Lednr) // LED Strip Get Pixel Color |
| 61 | +void LEDstartup(uint32_t LEDColour) // LED Synchronize the colour of the LEDstrip with the Status LED |
| 62 | +uint32_t HSVToRGB(double H, double S, double V) // LED convert HSV to RGB |
| 63 | +uint32_t FuncCRGBW( uint32_t Red, uint32_t Green, uint32_t Blue, uint32_t White) // LED function to make RGBW colour |
| 64 | +uint8_t Cwhite(uint32_t c) // LED functions to extract RGBW colours |
| 65 | +uint8_t Cred( uint32_t c) // LED functions to extract RGBW colours |
| 66 | +uint8_t Cgreen(uint32_t c) // LED functions to extract RGBW colours |
| 67 | +uint8_t Cblue( uint32_t c) // LED functions to extract RGBW colours |
| 68 | +void ClearScreen(void) // DISPLAY Clear the display |
| 69 | +uint32_t Wheel(byte WheelPos) // DISPLAY Wheel The colours are a transition r - g - b - back to r |
| 70 | +void StartLeds(void) // DISPLAY Initialyse the LEDstrip for WS2812 or SK6812 LEDs |
| 71 | +void ChangeRandomDisplay(void) // DISPLAY change display choice |
| 72 | +void RainbowCycle(uint8_t wait) // DISPLAY RainbowCycle |
| 73 | +void WhiteOverRainbow(uint32_t wait, uint8_t whiteSpeed, uint32_t whiteLength ) // DISPLAY WhiteOverRainbow |
| 74 | +void Zet_Pixel(byte Cijfer,byte Pos_X,byte Pos_Y)// DISPLAY Place digits 0 - 9 in Matrix display |
| 75 | +void TimePlaceDigit(byte uur, byte minuut) // DISPLAY Time in four digits in display |
| 76 | +void WriteLightReducer(int amount) // CLOCK In- or decrease light intensity value i.e. Slope |
| 77 | +void InitTimeSystem(void) // TIME Initialize time system (DS3231 + NTP + internal RTC) |
| 78 | +void SetSystemTimeToCompileTime(void) // TIME Set system time to compile time using basic functions |
| 79 | +time_t GetTijd(bool printit) // TIME Get current time from best available source |
| 80 | +DateTime GetLocalDateTime() // NTP Return local time as RTClib DateTime |
| 81 | +bool GetNTPtime(bool printit) // NTP print the NTP time for the timezone set. return true if time is valid |
| 82 | +void PrintNTPtime(void) // NTP print the NTP time for the timezone set |
| 83 | +void PrintUTCtime(void) // NTP print the NTP UTC time |
| 84 | +bool IsDS3231I2Cconnected(void) // DS3231 check for I2C connection |
| 85 | +float GetDS3231Temp(void) // DS3231 Get temperature from DS3231 module |
| 86 | +void SetDS3231Time(void) // DS3231 Set time in module DS3231 |
| 87 | +void GetDS3231Time(bool printit) // DS3231 reads time in module DS3231 |
| 88 | +void PrintDS3231Time(void) // DS3231 prints time to serial |
| 89 | +void PrintRTCdecTime(void) // RTC prints the ESP32 internal RTC time to serial |
| 90 | +void PrintTimeHMS() // RTC Fill sptext with time with linefeed |
| 91 | +void PrintTimeHMS(byte format) // RTC Fill sptext with time. 1 no LF, 2 LF |
| 92 | +void SetRTCTime(void) // RTC Set time using global timeinfo struct |
| 93 | +void SetRTCTime(time_t t) // RTC Set RTC time using Unix timestamp |
| 94 | +void PrintAllClockTimes(void) // CLOCK Print all the times available |
| 95 | +uint32_t HexToDec(const String& hexString) // CLOCK Convert Hex to uint32 |
| 96 | +void Demomode(void) // CLOCK Demo mode |
| 97 | +void FireMode(void) // CLOCK Demo mode |
| 98 | +uint8_t heat[MATRIX_HEIGHT][MATRIX_WIDTH]; // 2D heat map |
| 99 | +void Fire2023_2D() // CLOCK Demo mode |
| 100 | +void Dutch(void) // CLOCK Dutch clock display |
| 101 | +void English(void) // CLOCK English clock display |
| 102 | +void German(void) // CLOCK German clock display |
| 103 | +void French(void) // CLOCK French clock display |
| 104 | +void SendMessageBLE(std::string Message) // BLE SendMessage by BLE |
| 105 | +class MyServerCallbacks: // BLE Start BLE Classes |
| 106 | +class MyCallbacks: // BLE Start BLE Classes |
| 107 | +void StartBLEService(void) // BLE Start BLE Service |
| 108 | +void CheckBLE(void) // BLE CheckBLE input and rework string |
| 109 | +void WiFiEvent(WiFiEvent_t event) // WIFI WIFIEvents |
| 110 | +bool CheckforWIFINetwork(void) // WIFI Check for WIFI Network |
| 111 | +bool CheckforWIFINetwork(bool PrintIt) // WIFI Check for WIFI Network and print it |
| 112 | +void ScanWIFI(void) // WIFI Scan for WIFI stations |
| 113 | +void ConnectWIFI(void) // WIFI Check for WIFI router SSID and password |
| 114 | +void CheckRestoreWIFIconnectivity(void) // WIFI Check if WIFI is sill connected and if not restore it |
| 115 | +bool StartWIFI_NTP(void) // WIFI Start WIFI connection and NTP service |
| 116 | +void WebServerTask(void *pvParameters) // WIFI WebServerTask on core 1 |
| 117 | +void NTPnotify(struct timeval* t) // NTP time synchronized |
| 118 | +void setTimezone() // NTP set timezone |
| 119 | +void initSNTP() // NTP init SNTP |
| 120 | +void NTPnotify(struct timeval* tv) // NTP notify function |
| 121 | +void CheckandPrintNTPsynced(void) // NTP Check and Print NTP synced |
| 122 | +bool wait4SNTP() // NTP wait max 2.5 seconds |
| 123 | +void WebPage(void) // WIFI WEBPAGE |
| 124 | +void StartAPMode(void) // WIFI WEBPAGE Login credentials Access Point page with 192.168.4.1 |
| 125 | +void wpsInitConfig() // WIFI WPS functions |
| 126 | +void wpsStart() // WIFI WPS functions |
| 127 | +void wpsStop() // WIFI WPS functions |
| 128 | +String wpspin2string(uint8_t a[]) // WIFI WPS functions |
| 129 | +void OnewireKeypad3x4Check(void) // KEYPAD check for Onewire Keypad input |
| 130 | +void OnewireKeypad3x1Check(void) // KEYPAD check for Onewire Keypad input |
| 131 | +void InitKeypad3x1(void) // KEYPAD 3x1 Init |
| 132 | +void Keypad3x1Check(void) // KEYPAD check for Keypad input |
| 133 | +void InitRotaryMod(void) // KY-040 ROTARY encoder Init |
| 134 | +void RotaryEncoderCheck(void) // KY-040 ROTARY check if the rotary is moving |
| 135 | +void ProcessKeyPressTurn(int encoderPos) // KY-040 Rotary or Membrane 3x1 processing input |
| 136 | +void Start_IRreceiver(void) // IR-RECEIVER Start a large or tiny IR-RECEIVER |
| 137 | +void Init_IRreceiver(void) // IR-RECEIVER Init |
| 138 | +uint16_t IrReceiverDecode(void) // IR-RECEIVER Decode received signal |
| 139 | +void ProcessLearningMode(decode_type_t protocol, uint16_t command, uint16_t address) // IR-RECEIVER Internal function - Handles learning mode |
| 140 | +void ProcessRecognitionMode(decode_type_t protocol, uint16_t command, uint16_t address) // IR-RECEIVER Internal function - handles recognition mode |
| 141 | +void StartIRLearning(void) // IR-RECEIVER Initializes learning mode |
| 142 | +void PrintAllMappings(void) // IR-RECEIVER Shows learned buttons |
| 143 | +void ResetAllIRremoteSettings(void) // IR-RECEIVER Reset all settings |
| 144 | +int RecognizeButton(decode_type_t protocol, uint16_t command, uint16_t address) // IR-RECEIVER Identifies button pressed |
| 145 | +void ReworkIRremoteValue(int ButtonNamesNr) // IR-RECEIVER ReworkRemoteValue |
| 146 | +void AdjustTime(int DeltaHours, int DeltaMinutes, int DeltaSeconds) // IR-RECEIVER Adjust current time by hours/minutes/seconds |
| 147 | +void TogglePower(void) // IR-RECEIVER Toggle power/display on or off |
| 148 | +void InitLogBuffer(void) // LOGBUFFER Initialize circular logging buffer |
| 149 | +void AddLog(const char* msg) // LOGBUFFER Add a log line (raw C-string). Always ends with '\n'. |
| 150 | +void HandleTekstPrint(AsyncWebServerRequest *request) // LOGBUFFER Stream the last 500 lines circular log buffer directly to the client |
| 151 | +void HandleTekstDownload(AsyncWebServerRequest *request) // LOGBUFFER Stream all the circular log buffer directly to the client |
| 152 | + |
0 commit comments