All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.sciss.lucre.expr.LucrePi.scala Maven / Gradle / Ivy

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