github.com/usbarmory/tamago@v0.0.0-20240508072735-8612bbe1e454/board/raspberrypi/pi.go (about)

     1  // Raspberry Pi support for tamago/arm
     2  // https://github.com/usbarmory/tamago
     3  //
     4  // Copyright (c) the pi package authors
     5  //
     6  // Use of this source code is governed by the license
     7  // that can be found in the LICENSE file.
     8  
     9  // Package pi provides basic abstraction for support of different models of
    10  // Raspberry Pi single board computers.
    11  //
    12  // This package is only meant to be used with `GOOS=tamago GOARCH=arm` as
    13  // supported by the TamaGo framework for bare metal Go on ARM SoCs, see
    14  // https://github.com/usbarmory/tamago.
    15  package pi
    16  
    17  // Board provides a basic abstraction over the different models of Pi.
    18  type Board interface {
    19  	LED(name string, on bool) (err error)
    20  }