Arnov Sharma
Published © MIT

Delete Button XL

A huge delete button made from scratch.

BeginnerFull instructions provided1 hour14
Delete Button XL

Things used in this project

Hardware components

Seeed Studio XIAO SAMD21 (Pre-Soldered) - Seeeduino XIAO
Seeed Studio XIAO SAMD21 (Pre-Soldered) - Seeeduino XIAO
×1
PCBWay Custom PCB
PCBWay Custom PCB
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)

Story

Read more

Custom parts and enclosures

Fusion360File

Code

code

C/C++
#include "Keyboard.h"
const int buttonPin = 0; // GPIO pin where the button is connected
int buttonState = 0; // Current state of the button
void setup() {
pinMode(buttonPin, INPUT_PULLUP); // Initialize button pin as input with internal pull-up resistor
Keyboard.begin();
}
void loop() {
buttonState = digitalRead(buttonPin);
if (buttonState == LOW) { // If the button is pressed
Keyboard.press(KEY_DELETE); // Send Delete key press
delay(100); // Short delay to debounce the button
Keyboard.release(KEY_DELETE); // Release Delete key
delay(200); // Additional delay to prevent multiple triggers
}
}

Credits

Arnov Sharma

Arnov Sharma

303 projects • 305 followers
Just your average MAKER

Comments