This repository has as main objective, replicate the pimoroni's IS31FL3730 driver to the PowerShell environment, using PowerShell-IoT.
Here's the chip's datasheet
If you don't have PowerShell installed on your Raspberry, follow this guide to do so.
After that, you need to install PowerShell-IoT Module
It's simple!
git clone https://github.com/DanielSSilva/PowerShell-IoT---IS31FL3730-Driver.git
cd ./PowerShell-IoT---IS31FL3730-Driver/
sudo pwsh (if not already on PowerShell)
Import-Module ./ScrollpHat.psm1 -Force
Write-PhatString "HELLO WORLD" -WaitMiliseconds 50 -forever $true
-
Set the LEDs' brightness with
Set-Brightness
(Lowest, Low, Medium, High or Highest) -
Turn the leds off with
Set-LedsOff
-
Write some letters (a string) with
Write-String
. By default, the text is scrolled forever, unless specified otherwise (by passing$false
as second parameter)
Any suggestion/contribution is really welcome!