GyroLights  0.1
Oakleaf
conf Namespace Reference

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"
 

Detailed Description

All important configuration parameters are in the namespace conf

Function Documentation

◆ BLE_CHARACTERISTIC_UUID()

BLEUUID conf::BLE_CHARACTERISTIC_UUID ( BLE_CHARACTERISTIC_UUID_str  )

◆ BLE_SERVICE_UUID()

BLEUUID conf::BLE_SERVICE_UUID ( BLE_SERVICE_UUID_str  )

Variable Documentation

◆ BLE_CHARACTERISTIC_UUID_str

const char conf::BLE_CHARACTERISTIC_UUID_str[] = "018c4715-f39b-7e59-8928-4a8eda02c6a5"

◆ BLE_MASTER_NAME

const char conf::BLE_MASTER_NAME[] = "ESP_32"

this has to be the same name for a pair of lights

◆ BLE_SERVICE_UUID_str

const char conf::BLE_SERVICE_UUID_str[] = "018c4715-a90b-7ff1-8c4c-aeed790b0a0a"

◆ effects

const TaskFunction_t conf::effects[NUM_PINS_ROTARY_SWITCH+1]
Initial value:
= {
task_staticColor<*leds, conf::NUM_LEDS_TOTAL, CRGB::Black>,
task_gyroSimple<*leds, conf::NUM_LEDS_TOTAL>,
task_rainbow<*leds, conf::NUM_LEDS_TOTAL, 5>,
task_gyroToHeatmap<*leds, conf::NUM_LEDS_TOTAL, heatmap_test_>,
}

effects array

contains the effects mapped from the rotary switch.

◆ G_VAL

const int conf::G_VAL = (2 << (15 - 2 - GYRO_ACCEL_SENSITIVITY))

◆ GYRO_ACCEL_SENSITIVITY

const int conf::GYRO_ACCEL_SENSITIVITY = 2

sensitivity of the accelerometer range: 0..3

◆ I2C_GYRO_ADDR

const int conf::I2C_GYRO_ADDR = 0x68

◆ I2C_TIMEOUT_MS

const int conf::I2C_TIMEOUT_MS = 1000

◆ LED_PIN

const gpio_num_t conf::LED_PIN = GPIO_NUM_2

◆ MAX_BRIGHTNESS

const uint8_t conf::MAX_BRIGHTNESS = 80

maximum led brightness value. from 0 (always off) to 255 (maximum possible brightness).

◆ NUM_LEDS_PER_STRIP

const int conf::NUM_LEDS_PER_STRIP = 21

number of leds per individual strip

◆ NUM_LEDS_TOTAL

const int conf::NUM_LEDS_TOTAL = (NUM_LEDS_PER_STRIP * NUM_STRIPS)

◆ NUM_PINS_ROTARY_SWITCH

const int conf::NUM_PINS_ROTARY_SWITCH = (sizeof(PINS_ROTARY_SWITCH)/sizeof(*PINS_ROTARY_SWITCH))

◆ NUM_STRIPS

const int conf::NUM_STRIPS = 1

number of led strips

◆ PIN_LED_CLOCK

const gpio_num_t conf::PIN_LED_CLOCK = GPIO_NUM_19

◆ PIN_LED_DATA_1

const gpio_num_t conf::PIN_LED_DATA_1 = GPIO_NUM_23

◆ PIN_MPU6050_SCL

const gpio_num_t conf::PIN_MPU6050_SCL = GPIO_NUM_22

◆ PIN_MPU6050_SDA

const gpio_num_t conf::PIN_MPU6050_SDA = GPIO_NUM_21

◆ PIN_RF_SWITCH

const gpio_num_t conf::PIN_RF_SWITCH = GPIO_NUM_35

Input Pullup in Hardware.

◆ PINS_ROTARY_SWITCH

const gpio_num_t conf::PINS_ROTARY_SWITCH[]
Initial value:
= {
GPIO_NUM_18,
GPIO_NUM_17,
GPIO_NUM_16,
}

all rotary switch pins are pulled up in hardware

◆ UNIVERSE

const int conf::UNIVERSE = 1

First DMX Universe to listen for.

◆ UNIVERSE_COUNT

const int conf::UNIVERSE_COUNT = 1

Total number of Universes to listen for, starting at UNIVERSE.

◆ WIFI_AP_PW

const char conf::WIFI_AP_PW[] = "password1234"

password of the configuration access point

◆ WIFI_AP_SSID_PREFIX

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.

◆ WMA_PARAM_ACCEL

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]