Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.37 KB

Meadow.Foundation.mikroBUS.Sensors.Buttons.CButton.md

File metadata and controls

35 lines (26 loc) · 1.37 KB
uidslug
Meadow.Foundation.mikroBUS.Sensors.Buttons.CButton
/docs/api/Meadow.Foundation.mikroBUS/Meadow.Foundation.mikroBUS.Sensors.Buttons.CButton
CButton
Status<img src="https://img.shields.io/badge/Working-brightgreen" style={{ width: "auto", height: "-webkit-fill-available" }} alt="Status badge: working" />
Source codeGitHub
NuGet packageNuGet Gallery for Meadow.Foundation.mikroBUS.Sensors.Buttons.CButton

Code Example

CButtonledButton;publicMeadowApp(){Console.WriteLine("Initializing ...");ledButton=newCButton(Device.Pins.D03,Device.Pins.D04);ledButton.StartPulse(TimeSpan.FromSeconds(2),0.75f,0);ledButton.Clicked+=(s,e)=>{Console.WriteLine("Button clicked");ledButton.IsOn=!ledButton.IsOn;};}

Sample project(s) available on GitHub

close