Control NeoPixel-strip with Seeeduino XIAO BLE/M5Stack Atom Lite
You can change the lighting config with BLE. The lighting config has three parameters: input_src_id
, intensity_func_id
, and colormap_id
.
graph LR
subgraph BLE Service
input_src_id
intensity_func_id
colormap_id
end
input_src_id-.->|select|sensor
colormap_id-.->|select|colormap
intensity_func_id-.->|select|intensity_func
sensor-->|value|intensity_func-->|intensity|colormap-->|color|pixel_manager-->neopixels
processing flow:
graph LR
data_src[data src]
data_src-->|raw data|normalize-->|"magnitude\n(normalized value)"|shape_func-->|intensity|colormap-->|rgb|pixel
- Beat 0.5Hz/1.0Hz/2.0Hz (30bpm/60bpm/120bpm )
- Accel X/Y/Z
- Gyro X/Y/Z
- Heat (Linear)
- Wipe
- Traveling Wave
- etc.
- Hsv
- Twilight
- TwilightShifted
- etc.
Alwin Arrasyid introduces the way to install XIAO BLE board to PlatformIO:
https://medium.com/@alwint3r/working-with-seeed-xiao-ble-sense-and-platformio-ide-5c4da3ab42a3