This is the Arduino code that runs on Katpat.
Connect your Arduino to your computer via USB and open the katpat-arduino.ino
file within the Arduino IDE.
Choose Tools→Board and select your board in the Arduino menu.
Choose the correct serial port for your board (something like usbmodem).
And then click on Upload
.