add CAD and firmware
This commit is contained in:
parent
9290a8773e
commit
15c8f2d1a8
BIN
CAD/case_base.stl
Normal file
BIN
CAD/case_base.stl
Normal file
Binary file not shown.
BIN
CAD/case_lid.stl
Normal file
BIN
CAD/case_lid.stl
Normal file
Binary file not shown.
BIN
CAD/hand_piece.stl
Normal file
BIN
CAD/hand_piece.stl
Normal file
Binary file not shown.
BIN
CAD/knob.stl
Normal file
BIN
CAD/knob.stl
Normal file
Binary file not shown.
BIN
CAD/rail.stl
Normal file
BIN
CAD/rail.stl
Normal file
Binary file not shown.
BIN
CAD/rail_holder.stl
Normal file
BIN
CAD/rail_holder.stl
Normal file
Binary file not shown.
19
Firmware/button.ino
Normal file
19
Firmware/button.ino
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user