Which board are you usign? Gen1 or Gen2?
Also, after uploading the code are you receiving an error in the IDE or everything looks fine?
Take a look at this threads:
Servo's won't work for me! If you try this one put the Wire.begin() also in the void setup, check the workarounds that are mentioned there
There are no errors, I am using gen2,the same code worked for another driver with this board ,I think May be in am not able to understand how this driver works.the motor is not changing speed and direction.
Intel galileo Gen 2 Eurobot videos
i was able to solve this issue i just used 5v from my galileo and readjusted the powersource to 12 volts and it started working so the above code is correct
i was trying to install the opencv library i am using the linux sd card image.Can u help me
also the sudo apt-get command doesnot work it says unkown command.
i have only used one command opkg install opencv it says that it is installed in root but i am unable to compile cpp file with opecv library.