Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 18089

Missing Wire.h file in the arduino 1.5.3

$
0
0

Hi,

   I am writing a simple example for servos using the Servo package. When uploading the sketch to Galileo, compilation fails with an error

 

In file included from servo.ino:1:0:

/arduino-1.5.3/hardware/arduino/x86/libraries/Servo/Servo.h:5:18: fatal error: Wire.h: No such file or directory

compilation terminated.

 

The example being attempted is shared below and is based on http://ardx.org/CIRC04

 

#include <Servo.h>

Servo servo1;

void setup() {

  // put your setup code here, to run once:

  servo1.attach(9);

}

 

void loop() {

  // put your main code here, to run repeatedly:

  for(pos=0;pos<180;pos +=1) {

    servo1.write(pos);

    delay(15);

  }

 

  for(pos=180;pos>0;pos -= 1) {

    servo1.write(pos);

    delay(15);

  }

}

 

Thanks

 

Mukesh


Viewing all articles
Browse latest Browse all 18089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>