What's the specific symptom, Thomas? If it's a compilation problem, I can see a missing } after your first delay(15);
If the compiler does not find Wire.h then as a work around copy the files Wire.h and Wire.cpp from <arduino-1.5.3>\hardware\arduino\x86\libraries\Wire to <arduino-1.5.3>\hardware\arduino\x86\libraries\Servo. I tested this work around on Windows and the sketch compiled successfully.
Rod, it's a known quirk of the Arduino build environment that if library A depends on library B, as is the case here with the Servo library requiring Wire, then the end user must explicitly #include both library headers. This is cleaner than physically copying the Wire library into the Servo library folder.
In other words, Thomas, I would expect the sketch above to work if you (a) add
after line 1, and
after line 15.
You are absolutely right, its a good tip to know.
I found out that its a known Issue with the Galileo board if you go to section 1.7.12 in the release notes https://communities.intel.com/servlet/JiveServlet/previewBody/21837-102-6-25156/Galileo_RelNotes_329686_004.pdf It says that "
Servo library is not currently supported. The workaround is to access the Pulse Width
Modulator (PWM) directly as described below.
Thomas, I'll let someone from the Galileo team confirm, but I believe that information is obsolete. The Servo library definitely IS currently in the Galileo Arduino software distribution. It's a custom version written specifically for Galileo (and it uses that PWM method described).