|
Smart Poi 3.0.0
WiFi Connected LED POV Poi
|
Functions | |
| void | eepromBrightnessChooser (int addr) |
| Retrieves and sets the brightness from EEPROM. | |
| void | eepromRouterOptionChooser (int addr) |
| Retrieves and sets the router option from EEPROM. | |
| void | eepromWifiModeChooser (int addr) |
| Retrieves and sets the Wi-Fi mode from EEPROM. | |
| void | eepromPatternChooser (int addr) |
| Retrieves and sets the pattern from EEPROM. | |
| void | readAnotherPatternEEProm () |
| Reads and increments the pattern from EEPROM. | |
| void | eepromReadChannelAndAddress (int addr1, int addr2, int addr3, int addr4, int addr5) |
| Reads channel and address information from EEPROM. | |
| void | littleFSLoadSettings () |
| Loads settings from LittleFS file system. | |
| void | checkFilesInSetup () |
| Checks files in the LittleFS file system during setup. | |
| void | wifiChooser (char router_array[], char pwd_array[]) |
| Configures Wi-Fi settings based on the selected mode. | |
| void | fastLEDInit () |
| Initializes FastLED library and sets up LED strip. | |
| void | fastLEDIndicate () |
| Indicates Wi-Fi mode using FastLED library. | |
| void | fastLEDIndicateFast () |
| Indicates Wi-Fi mode using FastLED library with a faster sequence. | |
| void checkFilesInSetup | ( | ) |
Checks files in the LittleFS file system during setup.
This function iterates through all files in the root directory ("/"), checks their size, and deletes them if they exceed the maximum allowed size (maxPX). It also checks for file corruption by attempting to read a small portion of each file.
| None |
References maxPX.
Referenced by setup().

| void eepromBrightnessChooser | ( | int | addr | ) |
Retrieves and sets the brightness from EEPROM.
Reads the brightness value from EEPROM, checks for validity, and sets the brightness accordingly.
| addr | The EEPROM address where the brightness value is stored. |
References newBrightness.
Referenced by setup().

| void eepromPatternChooser | ( | int | addr | ) |
Retrieves and sets the pattern from EEPROM.
Reads the pattern value from EEPROM, checks for validity, and sets the pattern accordingly.
| addr | The EEPROM address where the pattern value is stored. |
References pattern, patternChooser, and readAnotherPatternEEProm().
Referenced by setup().


| void eepromReadChannelAndAddress | ( | int | addr1, |
| int | addr2, | ||
| int | addr3, | ||
| int | addr4, | ||
| int | addr5 ) |
Reads channel and address information from EEPROM.
Retrieves channel and address values from EEPROM, performs validation, and sets global variables accordingly.
| addr1 | EEPROM address for channel information. |
| addr2 | EEPROM address for IP address octet D. |
| addr3 | EEPROM address for IP address octet A. |
| addr4 | EEPROM address for IP address octet B. |
| addr5 | EEPROM address for IP address octet C. |
References addrNumA, addrNumB, addrNumC, addrNumD, and apChannel.
Referenced by setup().

| void eepromRouterOptionChooser | ( | int | addr | ) |
Retrieves and sets the router option from EEPROM.
Reads the router option value from EEPROM, checks for validity, and sets the router option accordingly.
| addr | The EEPROM address where the router option value is stored. |
References routerOption.
Referenced by setup().

| void eepromWifiModeChooser | ( | int | addr | ) |
Retrieves and sets the Wi-Fi mode from EEPROM.
Reads the Wi-Fi mode value from EEPROM, checks for validity, and sets the Wi-Fi mode accordingly.
| addr | The EEPROM address where the Wi-Fi mode value is stored. |
References routerOption, and wifiModeChooser.
Referenced by setup().

| void fastLEDIndicate | ( | ) |
Indicates Wi-Fi mode using FastLED library.
Displays a sequence of colors on the LED strip to indicate the current Wi-Fi mode. If wifiModeChooser is 1, (AP Mode) displays a sequence of red or blue colors depending on the auxillary variable. If wifiModeChooser is not 1, (Router Mode) displays a sequence of green colors.
References auxillary, leds, NUM_LEDS, and wifiModeChooser.
Referenced by setup().

| void fastLEDIndicateFast | ( | ) |
Indicates Wi-Fi mode using FastLED library with a faster sequence.
Displays a faster sequence of colors on the LED strip to indicate the current Wi-Fi mode. If wifiModeChooser is 1, (AP Mode) displays a sequence of magenta or cyan colors depending on the auxillary variable. If wifiModeChooser is not 1, (Router Mode) displays a sequence of green colors.
References auxillary, leds, NUM_LEDS, NUM_PX, and wifiModeChooser.
Referenced by setup().

| void fastLEDInit | ( | ) |
Initializes FastLED library and sets up LED strip.
Configures FastLED with the specified LED type (WS2812B), data pin (DATA_PIN), and color order (GRB), and sets the initial brightness (newBrightness) and color (black).
References DATA_PIN, leds, newBrightness, and NUM_LEDS.
Referenced by setup().

| void littleFSLoadSettings | ( | ) |
Loads settings from LittleFS file system.
Reads settings from /settings.txt file and stores them in global variables.
References Field, settings, webServerSetupLogic(), and wifiChooser().
Referenced by setup().


| void readAnotherPatternEEProm | ( | ) |
Reads and increments the pattern from EEPROM.
Reads the pattern value from EEPROM, increments it, and writes it back to EEPROM.
References pattern.
Referenced by eepromPatternChooser().

| void wifiChooser | ( | char | router_array[], |
| char | pwd_array[] ) |
Configures Wi-Fi settings based on the selected mode.
Sets up Wi-Fi in either Access Point (AP) mode, Station mode, or connects to a pre-defined router.
| router_array | Router SSID (used in Station mode). |
| pwd_array | Router password (used in Station mode). |
References addrNumA, addrNumB, addrNumC, addrNumD, apChannel, apIP(), apIPauxillary(), apName, apPass, auxillary, DNS_PORT, dnsServer, ipGatewayauxillary(), ipSubnet(), leds, tmpGateway(), tmpIP(), uploadCounter, wifiModeChooser, and WiFiMulti.
Referenced by littleFSLoadSettings().

