OpenBlink is an open source project forked from ViXion Blink.
- Ruby, a highly productive lightweight language, can be used to develop embedded devices.
- Program rewriting and debugging console are completely wireless. (BluetoothLE)
- Rewriting time is less than 0.1 second and does not involve a microprocessor restart. (We call it "Blink".)
To clone the repository and initialize the submodules, run the following commands:
$ git clone https://github.com/OpenBlink/openblink-demo-m5.git
$ pio run
$ pio run -e m5stack-stamps3 -t erase -t uploadNote: Both
m5stack-stamps3andm5stack-atomenvironments are configured in platformio.ini and can be used for device operations. The examples above usem5stack-stamps3, but you can usem5stack-atomby replacingm5stack-stamps3withm5stack-atomin the commands.
The following hardware platforms have been tested with OpenBlink:
- M5 StampS3 (Espressif ESP32-S3FN8)
- M5 ATOM (Espressif ESP32)
For more detailed documentation, please check the doc directory For AI-powered comprehensive documentation that helps you understand the codebase, visit DeepWiki.
OpenBlink provides a simple API for controlling the onboard RGB LED through mruby/c.
LED.set([r, g, b])- Sets the RGB LED color. Each value should be between 0-255.
Here's a simple example that makes the LED blink in different colors:
# RGB LED Blinking Example
while true do
# Red
LED.set([255, 0, 0])
sleep 1
# Green
LED.set([0, 255, 0])
sleep 1
# Blue
LED.set([0, 0, 255])
sleep 1
endThis example demonstrates:
- Setting RGB LED colors using the
LED.setmethod - Using arrays to specify RGB values