Step 9Program the Mac
We'll start by taking Tod E. Kurt's existing arduino-serial program that reads the Arduino serial port. I've made a few small modifications to automatically do stuff when it sees a 1 or a 2. The attached file should work well. You can read the comments if you wanna see whats going on, but its not for the faint of heart.
You can download the source (the arduino-serial-footswitch.c file) or the compiled app (third file: arduino-serial-footswitch).
Download it and put it in a new folder.
If you wanna compile it, I'll assume you know how to:
1) Open an iTerm and CD into that directory
2) Compile it by typing: gcc -o arduino-serial-footswitch arduino-serial-footswitch.c
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|

















































