Skip to content

Kneschtie/Shut_up_Button

Repository files navigation

Shut_up_Button

I will show you, how a arduino can write things.

You need a 3d-printer, arduino Leonardo and buttons I used PLA with 200C Celsius Nozzel and 50C Celsius hot bed. After printing i soldered the buttons together

Prints

How to connect

Schaltbild

Example code

#include <Keyboard.h>

void setup() {
 // make pin 7 an input and turn on the
 // pullup resistor so it goes high unless
 // connected to ground:
  pinMode(7, INPUT_PULLUP);
 Keyboard.begin();
 }

void loop() {
 //if the button is pressed
 if (digitalRead(7) == LOW) {
   //Send the message
   Keyboard.println("NOOB");    
   delay(50);
 }
}

More Information: https://www.arduino.cc/reference/en/language/functions/usb/keyboard/

Subscribe to my YouTube Channel for more Projects

https://www.youtube.com/channel/UCUKGpRmZLFh_AmThMi59b7w

Finished

Button: (https://www.amazon.de/WINOMO-Premium-Mikroschalter-Roller-Endschalter/dp/B01LWI1PKU/ref=sr_1_53?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&dchild=1&keywords=schalter+l%C3%B6ten&qid=1628159677&sr=8-53)