Skip to content
(Under Development) Program your MATRIX device with Ruby!
Ruby Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
matrix-hal-swig @ 0b185b8


Under Development

MATRIX Lite RB is a library that allows users of varying skill levels to easily program their MATRIX Device.


This roadmap is for achieving a basic implementation of the checklist below. A nicer abstraction will eventually be added.

  • Leds
  • Sensors
    • IMU
    • Humidity
    • Pressure
    • UV
  • GPIO
  • Microphones
    • Hal Mics
    • Alsa Mics


Ensure you have a Raspberry Pi, attached with a MATRIX device, that's flashed with Raspbian Stretch.

1. Install MATRIX HAL

2. Install Ruby

sudo apt-get install ruby-full

3. Install SWIG

sudo apt-get install swig

4. Clone & Build matrix-lite-rb

git clone --recurse-submodules
cd matrix-lite-rb/matrix-hal-swig && git checkout master && cd ..


You can use ruby swigExamples.rb to see a basic led example. The code inside that file will contain untouched examples of the HAL Swig wrapper.

Similar to matrix-lite-py, we will eventaully provide an abstracted library for this.

You can’t perform that action at this time.