Skip to content

Instantly share code, notes, and snippets.

@TakehikoShimojima
Created August 17, 2020 05:40
Show Gist options
  • Save TakehikoShimojima/fb7f05a1e5bf2d00f0002996a0308b7f to your computer and use it in GitHub Desktop.
Save TakehikoShimojima/fb7f05a1e5bf2d00f0002996a0308b7f to your computer and use it in GitHub Desktop.
#include <M5StickC.h>
void setup() {
M5.begin();
M5.Lcd.setTextSize(2);
pinMode(33, INPUT_PULLUP);
}
void loop() {
M5.Lcd.setCursor(30, 60, 4);
M5.Lcd.printf("%d",digitalRead(33));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment