GitHub - stulevine/LEDBackpack: Swift 3 driver and example for the Adafruit Bicolor 8x8 I2C LED Backpack using the SMBus-swift library written by Fabio Ritrovato https://github.com/Sephiroth87

1 min read Original article ↗

To clone this repo on your respberry pi with LEDBackpack:

git clone --recursive git@github.com:stulevine/LEDBackpack.git

Details:

  • Swift 3 driver and example for the Adafruit Bicolor 8x8 I2C LED Backpack
  • Requires the SMBus-swift library written by Fabio Ritrovato
  • The ∏ generation and display app (Pi.swift) requires BigInt library, as well as the SipHash library written by Károly Lőrentey - make sure to run the shell script 'raspberryPiPatch.sh' in the libs directory before attempting to build since swift on Raspberry Pi does not yet have support for the Package Manager.
  • Hooked up to my Raspberry Pi Zero W with Swift 3.0.2 installed from www.uraimo.com.
  • Uses Coroutine.swift class from Jaden Geller that has been converted to Swift 3 syntax
  • Uses Bill Abt Signals.swift
  • To build the LEDFun app in the video below, run the buildLEDFun.sh script
  • To build the Pi app, run the buildPi.sh script
  • Here's a quick demo video:

IMAGE ALT TEXT HERE