github.com/f-secure-foundry/tamago@v0.0.0-20220307101044-d73fcdd7f11b/board/raspberrypi/pi.go (about)

     1  // Raspberry Pi support for tamago/arm
     2  // https://github.com/f-secure-foundry/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/f-secure-foundry/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  }