- RGB LED Control (3 REG LEDs on the ReSpeaker board, SPI CE1)
- Button Control (Pressed, Released, Clicked, DoubleClicked and LongPress event)
- Dot-matrix 32x8 Control (MAX7219, SPI CE0)
Build from HOST PC(x86) using crosscompile docker image
docker run -it --rm -v $PWD:$PWD -w $PWD nugulinux/devenv:rpi_buster ./build.sh
https://github.com/respeaker/seeed-voicecard
git clone https://github.com/respeaker/seeed-voicecard
cd seeed-voicecard
sudo ./install.sh
sudo reboot
-
Copy the files in the OUTPUT directory to your Raspberry pi
-
Enable ntoy systmed service
systemctl enable ntoy
systemctl start ntoy
On/Off the LED
mdbus2 -s n.toy /LED n.toy.LED.On
Set RGB
mdbus2 -s n.toy /LED n.toy.LED.RGB 255 255 255
Set Brightness (0 ~ 31)
mdbus2 -s n.toy /LED n.toy.LED.Brightness 31
You can also control each led using the object path(0 ~ 2):
mdbus -s n.toy /LED/0 n.toy.LED.Off
mdbus -sl n.toy
One click events:
[SIGNAL] n.toy.Button.Pressed /Button :1.8
()
[SIGNAL] n.toy.Button.Clicked /Button :1.8
()
[SIGNAL] n.toy.Button.Released /Button :1.8
()
Double click and release events:
[SIGNAL] n.toy.Button.Pressed /Button :1.8
()
[SIGNAL] n.toy.Button.Clicked /Button :1.8
()
[SIGNAL] n.toy.Button.Released /Button :1.8
()
[SIGNAL] n.toy.Button.Pressed /Button :1.8
()
[SIGNAL] n.toy.Button.DoubleClicked /Button :1.8
()
[SIGNAL] n.toy.Button.Released /Button :1.8
()
Long-press and release events:
[SIGNAL] n.toy.Button.Pressed /Button :1.8
()
[SIGNAL] n.toy.Button.LongPress /Button :1.8
()
[SIGNAL] n.toy.Button.Clicked /Button :1.8
()
[SIGNAL] n.toy.Button.Released /Button :1.8
()
Clear
mdbus -s n.toy /Matrix n.toy.Matrix.Clear
Turn on/off the pixel (row, col, 1 or true = On / 0 or false = Off)
mdbus -s n.toy /Matrix n.toy.Matrix.SetPixel 4 15 1
mdbus -s n.toy /Matrix n.toy.Matrix.SetPixel 4 15 0