Skip to content

Instantly share code, notes, and snippets.

@hatsunea
Last active August 12, 2022 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hatsunea/598dce7d7722ce58b5ad0df8342f43a7 to your computer and use it in GitHub Desktop.
Save hatsunea/598dce7d7722ce58b5ad0df8342f43a7 to your computer and use it in GitHub Desktop.
M5StickCPlus.ButtonM5.ButtonDown += (s, e) =>
{
Console.WriteLine("M5 ButtonDown");
Led.Write(System.Device.Gpio.PinValue.Low);
};
M5StickCPlus.ButtonM5.ButtonUp += (s, e) =>
{
Console.WriteLine("M5 ButtonUp");
Led.Write(System.Device.Gpio.PinValue.High);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment