🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/rflandau/ACPE-Button

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/rflandau/ACPE-Button

v0.0.0-20250124214533-360519bac15c
Source
Go
Version published
Created
Source

ACPE-Button

Wrapper for handling buttons in TinyGo.

Built for use with the Adafruit Circuit Playground Express, but should (theoretically) work for any device with a single pin button.

Example Usage

A := button.New(machine.BUTTONA)
for {
  a, d := A.Held()
  println("a:", a, "| held duration:", d.Milliseconds(), "ms")
  time.Sleep(100 * time.Millisecond)
}

TinyGo extension

Not mandatory, but strongly recommended. Available here.

FAQs

Package last updated on 24 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts