These are chat archives for nebrius/raspi-io

26th
Oct 2018
kTweaks
@EricLegend
Oct 26 2018 05:16
Hey everyone, really new to this. Using an LED strip (WS2812) with https://github.com/beyondscreen/node-rpi-ws281x-native and it says to init use const board = new five.Board({ io: new Raspi({ excludePins: 'GPIO18'}) // Exclude GPIO18 from raspi-io }); but why would I do that if my LED's are on GPIO18?
Bryan Hughes
@nebrius
Oct 26 2018 15:08
@EricLegend. We exclude this pin because Raspi IO doesn't support talking to WS2812's. To talk to WS2812's, you'll need to use an independent library. By default, Raspi IO controlls all pins on the Raspberry Pi in such a way that it prevents other libraries from using the pins too. To allow the node-rpi-ws281x-native module to access GPIO18, you need to tell Raspi IO to not control that one pin so the other library can.