GyroLights
0.1
Oakleaf
|
Functions | |
BLEUUID | BLE_SERVICE_UUID (BLE_SERVICE_UUID_str) |
BLEUUID | BLE_CHARACTERISTIC_UUID (BLE_CHARACTERISTIC_UUID_str) |
Variables | |
const TaskFunction_t | effects [NUM_PINS_ROTARY_SWITCH+1] |
effects array More... | |
const char | WIFI_AP_SSID_PREFIX [] = "ESP32_" |
first part of the access point ssid. second part are the last 6 characters of the mac address in hex. More... | |
const char | WIFI_AP_PW [] = "password1234" |
password of the configuration access point More... | |
const int | NUM_LEDS_PER_STRIP = 21 |
number of leds per individual strip More... | |
const int | NUM_STRIPS = 1 |
number of led strips More... | |
const uint8_t | MAX_BRIGHTNESS = 80 |
maximum led brightness value. from 0 (always off) to 255 (maximum possible brightness). More... | |
const int | I2C_TIMEOUT_MS = 1000 |
const float | WMA_PARAM_ACCEL = 0.5 |
parameter \(\alpha\) in weighted moving average \((1-\alpha) * newValue + \alpha * oldValue \). lower value: more immediate response, higher value may reduce flicker. in range [0, 1] More... | |
const int | UNIVERSE = 1 |
First DMX Universe to listen for. More... | |
const int | UNIVERSE_COUNT = 1 |
Total number of Universes to listen for, starting at UNIVERSE. More... | |
const char | BLE_MASTER_NAME [] = "ESP_32" |
this has to be the same name for a pair of lights More... | |
const gpio_num_t | LED_PIN = GPIO_NUM_2 |
const gpio_num_t | PINS_ROTARY_SWITCH [] |
all rotary switch pins are pulled up in hardware More... | |
const gpio_num_t | PIN_LED_CLOCK = GPIO_NUM_19 |
const gpio_num_t | PIN_LED_DATA_1 = GPIO_NUM_23 |
const gpio_num_t | PIN_RF_SWITCH = GPIO_NUM_35 |
Input Pullup in Hardware. More... | |
const gpio_num_t | PIN_MPU6050_SCL = GPIO_NUM_22 |
const gpio_num_t | PIN_MPU6050_SDA = GPIO_NUM_21 |
const int | NUM_PINS_ROTARY_SWITCH = (sizeof(PINS_ROTARY_SWITCH)/sizeof(*PINS_ROTARY_SWITCH)) |
const int | NUM_LEDS_TOTAL = (NUM_LEDS_PER_STRIP * NUM_STRIPS) |
const int | I2C_GYRO_ADDR = 0x68 |
const int | GYRO_ACCEL_SENSITIVITY = 2 |
sensitivity of the accelerometer range: 0..3 More... | |
const int | G_VAL = (2 << (15 - 2 - GYRO_ACCEL_SENSITIVITY)) |
const char | BLE_SERVICE_UUID_str [] = "018c4715-a90b-7ff1-8c4c-aeed790b0a0a" |
const char | BLE_CHARACTERISTIC_UUID_str [] = "018c4715-f39b-7e59-8928-4a8eda02c6a5" |
All important configuration parameters are in the namespace conf
BLEUUID conf::BLE_CHARACTERISTIC_UUID | ( | BLE_CHARACTERISTIC_UUID_str | ) |
BLEUUID conf::BLE_SERVICE_UUID | ( | BLE_SERVICE_UUID_str | ) |
const char conf::BLE_CHARACTERISTIC_UUID_str[] = "018c4715-f39b-7e59-8928-4a8eda02c6a5" |
const char conf::BLE_MASTER_NAME[] = "ESP_32" |
this has to be the same name for a pair of lights
const char conf::BLE_SERVICE_UUID_str[] = "018c4715-a90b-7ff1-8c4c-aeed790b0a0a" |
const TaskFunction_t conf::effects[NUM_PINS_ROTARY_SWITCH+1] |
effects array
contains the effects mapped from the rotary switch.
const int conf::G_VAL = (2 << (15 - 2 - GYRO_ACCEL_SENSITIVITY)) |
const int conf::GYRO_ACCEL_SENSITIVITY = 2 |
sensitivity of the accelerometer range: 0..3
const int conf::I2C_GYRO_ADDR = 0x68 |
const int conf::I2C_TIMEOUT_MS = 1000 |
const gpio_num_t conf::LED_PIN = GPIO_NUM_2 |
const uint8_t conf::MAX_BRIGHTNESS = 80 |
maximum led brightness value. from 0 (always off) to 255 (maximum possible brightness).
const int conf::NUM_LEDS_PER_STRIP = 21 |
number of leds per individual strip
const int conf::NUM_LEDS_TOTAL = (NUM_LEDS_PER_STRIP * NUM_STRIPS) |
const int conf::NUM_PINS_ROTARY_SWITCH = (sizeof(PINS_ROTARY_SWITCH)/sizeof(*PINS_ROTARY_SWITCH)) |
const int conf::NUM_STRIPS = 1 |
number of led strips
const gpio_num_t conf::PIN_LED_CLOCK = GPIO_NUM_19 |
const gpio_num_t conf::PIN_LED_DATA_1 = GPIO_NUM_23 |
const gpio_num_t conf::PIN_MPU6050_SCL = GPIO_NUM_22 |
const gpio_num_t conf::PIN_MPU6050_SDA = GPIO_NUM_21 |
const gpio_num_t conf::PIN_RF_SWITCH = GPIO_NUM_35 |
Input Pullup in Hardware.
const gpio_num_t conf::PINS_ROTARY_SWITCH[] |
all rotary switch pins are pulled up in hardware
const int conf::UNIVERSE = 1 |
First DMX Universe to listen for.
const int conf::UNIVERSE_COUNT = 1 |
Total number of Universes to listen for, starting at UNIVERSE.
const char conf::WIFI_AP_PW[] = "password1234" |
password of the configuration access point
const char conf::WIFI_AP_SSID_PREFIX[] = "ESP32_" |
first part of the access point ssid. second part are the last 6 characters of the mac address in hex.
const float conf::WMA_PARAM_ACCEL = 0.5 |
parameter \(\alpha\) in weighted moving average \((1-\alpha) * newValue + \alpha * oldValue \). lower value: more immediate response, higher value may reduce flicker. in range [0, 1]