Add static IP config, prepare for web config support
This commit is contained in:
61
src/config.h
Normal file
61
src/config.h
Normal file
@ -0,0 +1,61 @@
|
||||
#pragma once
|
||||
// User configurable settings
|
||||
|
||||
#define DEBUG
|
||||
|
||||
// Amount of color channels per pixel - i.e. RGB = 3, RGBW = 4
|
||||
#define PIXEL_SIZE 3
|
||||
|
||||
// Total LED count
|
||||
// set to 128*8 for 4 channel, 170*8 for 3 channel
|
||||
#define MAX_LEDS 170*8
|
||||
|
||||
// LED driver chip model - depends on strip
|
||||
#define LED_TYPE WS2811
|
||||
|
||||
// RGB pin ordering - RGB, BGR, GBR, etc
|
||||
#define RGB_ORDER GBR
|
||||
|
||||
// Max number of LED strips connected
|
||||
// 8 for ARGB Controller PCB
|
||||
#define LED_STRIPS 8
|
||||
|
||||
// Define the data pin connection to each strip
|
||||
// 0-7 for ARGB Controller PCB
|
||||
#define STRIP1 0
|
||||
#define STRIP2 1
|
||||
#define STRIP3 2
|
||||
#define STRIP4 3
|
||||
#define STRIP5 4
|
||||
#define STRIP6 5
|
||||
#define STRIP7 6
|
||||
#define STRIP8 7
|
||||
|
||||
// enable pin, if any
|
||||
// 8 on ARGB controller
|
||||
#define ENABLEPIN 8
|
||||
|
||||
// define how many LEDs / zones are in each strip
|
||||
|
||||
|
||||
#define ENABLE_NTP false
|
||||
#define ntpserver "pool.ntp.org" // Address of NTP server. Example: pool.ntp.org
|
||||
|
||||
// ethernet (w5500) or wifi (pico W cyw43)
|
||||
#define INT_ETHERNET
|
||||
//#define INT_WIFI
|
||||
|
||||
#define ETH_SPI_SPD 10000000
|
||||
|
||||
// Temporary: network and universe settings
|
||||
|
||||
// Will be replaced with WebUI + EEPROM config
|
||||
// to allow for changing settings without recompiling
|
||||
#define HOSTNAME "Lighting.1"
|
||||
#define ETH_MODE "staticip" // comment out for DHCP
|
||||
#define IP_ADDR IPAddress(192,168,50,2)
|
||||
#define update_path "/update"
|
||||
#define update_username "admin"
|
||||
#define update_password "Password@123"
|
||||
|
||||
#define START_UNIVERSE 1
|
Reference in New Issue
Block a user