de.sciss.lucre.expr.LucrePi.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lucre-pi_2.13 Show documentation
Show all versions of lucre-pi_2.13 Show documentation
Raspberry Pi GPIO support for Lucre
The newest version!
/*
* LucrePi.scala
* (LucrePi)
*
* Copyright (c) 2020-2024 Hanns Holger Rutz. All rights reserved.
*
* This software is published under the GNU Affero General Public License v3+
*
*
* For further information, please contact Hanns Holger Rutz at
* [email protected]
*/
package de.sciss.lucre.expr
import de.sciss.lucre.expr
object LucrePi {
def init(): Unit = _init
private type ExV = ExElem.ProductReader[Product]
private def exSq: Seq[ExV] = {
import expr.graph._
Seq[ExV](
GPIO.DigitalIn, GPIO.DigitalOut,
GPIO.ADS1X15, GPIO.ADS1X15.In, GPIO.ADS1X15.RunSingle,
GPIO.PCA9685, GPIO.PCA9685.PwmUpdate,
RPi.Pin
)
}
private lazy val _init: Unit = {
ExElem.addProductReaderSq(exSq)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy