Hi Ken,
The required sketch mentioned here is automatically uploaded using DeviceConfigure
.
If you would like to look at this sketch you can find it at :
PacletResource["DeviceDriver_Arduino", "Sketch"]
Note that the sketch is a Mathematica formatted template, which is configured by DeviceConfigure
, to look at the fully generated template you can run :
DeviceConfigure["Arduino","Upload"->{"Debug"->True}]
Then you will see the temporary folder (which is normally deleted if "Debug" isn't set to True) listed where the sketch file is located.
Note that due to a bug with the Arduino IDE, and this sketch's usage of functions returning pointers to structs, you will not be able to open up this file with the Arduino IDE and immediately upload it. For more information on this, see this blog.
Thanks,
Ian