Scroll-phat-swift alternatives and similar libraries
Based on the "Peripherals" category.
Alternatively, view Scroll-phat-swift alternatives based on common mentions on social networks and blogs.
5110LCD_PCD8544.swift0.8 0.0 L4 Scroll-phat-swift VS 5110LCD_PCD8544.swiftA Swift library for the Nokia3310/5110 PCD8544 Monochrome LCD display
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Scroll-phat-swift or a related project?
scroll-phat-swift is a Linux library to control Pimoroni Scroll pHAT for Raspberry Pi.
Package Manager is not functional on Raspberry Pi yet, so you'll have to do it manually for now. After cloning, compile your program adding the 2 system dependencies, the SMBus file and the scroll-phat one, like:
swiftc -o MyProgram -I ./SMBus/Packages/Ci2c -I ./SMBus/Packages/CioctlHelper ./SMBus/Sources/SMBus.swift ./Sources/ScrollpHAT.swift main.swift
You can look in the Examples folder for see how to build your program.
No need to import anything since the library is built together with your other sources. Create a ScrollpHAT object:
let pHAT = try ScrollpHAT()
to turn on/off an led use :
pHAT.setPixel(x: 0, y: 0, value: true) try pHAT.update()
write a string:
try pHAT.scroll() try pHAT.scrollTo(0)
- [x] Add missing functions (text, scrolling)
- [ ] Add documentation
- [ ] Support Package Manager