add CAD and firmware

This commit is contained in:
gocivici 2025-01-02 16:29:18 -08:00
parent 9290a8773e
commit 15c8f2d1a8
7 changed files with 19 additions and 0 deletions

BIN
CAD/case_base.stl Normal file

Binary file not shown.

BIN
CAD/case_lid.stl Normal file

Binary file not shown.

BIN
CAD/hand_piece.stl Normal file

Binary file not shown.

BIN
CAD/knob.stl Normal file

Binary file not shown.

BIN
CAD/rail.stl Normal file

Binary file not shown.

BIN
CAD/rail_holder.stl Normal file

Binary file not shown.

19
Firmware/button.ino Normal file
View File

@ -0,0 +1,19 @@
#include <Keyboard.h>
int buttonPin = 9; // Set a button to any pin
void setup()
{
pinMode(buttonPin, INPUT_PULLUP); // Set the button as an input
Keyboard.begin();
}
void loop()
{
if (digitalRead(buttonPin) == 0) // if the button goes low
{
Keyboard.press('z'); // send a 'z' to the computer via Keyboard HID // delay so there aren't a kajillion z's
}else{
Keyboard.releaseAll();
}
delay(50);
}