Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Go·Hardware·Lean - Host drivers

License

NotificationsYou must be signed in to change notification settings

periph/host

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation is athttps://periph.io

Join us for a chat ongophers.slack.com/messages/periph,get aninvite here.

mascot

PkgGoDevcodecov

Example

Blink a LED:

package mainimport ("time""periph.io/x/conn/v3/gpio""periph.io/x/host/v3""periph.io/x/host/v3/rpi")funcmain() {host.Init()t:=time.NewTicker(500*time.Millisecond)forl:=gpio.Low; ;l=!l {rpi.P1_33.Out(l)<-t.C    }}

Curious? Look atsupported devices for moreexamples!

Authors

periph was initiated with ❤️️ and passion byMarc-AntoineRuel. The full list of contributors is inAUTHORS andCONTRIBUTORS.


[8]ページ先頭

©2009-2025 Movatter.jp