Hi,
With any project using the Braccio library I get this error:
In file included from /Users/marcofusco/Documents/Arduino/libraries/Arduino_Braccio_plusplus/src/lib/powerdelivery/PD_UFP.h:25:0,
from /Users/marcofusco/Documents/Arduino/libraries/Arduino_Braccio_plusplus/src/Braccio++.h:29,
from /private/var/folders/fr/z593mgld597gjz_k30hwlx8w0000gn/T/.arduinoIDE-unsaved2025115-3212-10wns5x.i22hf/01_playing_with_the_motors/01_playing_with_the_motors.ino:1:
/Users/marcofusco/Documents/Arduino/libraries/Arduino_Braccio_plusplus/src/lib/powerdelivery/FUSB302_UFP.h:22:10: fatal error: mbed.h: No such file or directory
Here is a sketch:
#include <Braccio++.h>
int motorID= 0;
void setup() {
Braccio.begin();
delay(500);
Serial.begin(115200);
while(!Serial){}
}
void loop() {
Serial.println("To start, send any key to the serial port:");
while((Serial.available() <= 0)){};
Serial.read(); // Clear the serial buffer
for(motorID = 1; motorID <=6; motorID++){
Serial.println("\nMoving the motor " + String(motorID));
Serial.println("Current angle 0.0 (zero)");
Braccio.move(motorID).to(0.0f);
delay(2000); // delay between movements
Serial.println("Current angle 90.0");
Braccio.move(motorID).to(90.0f);
delay(2000); // delay between movements
Serial.println("Current angle 180.0");
Braccio.move(motorID).to(180.0f);
delay(2000); // delay between movements
Serial.println("Current angle 270.0");
Braccio.move(motorID).to(270.0f);
delay(2000); // delay between movements
Serial.println("Current angle 315.0\n");
Braccio.move(motorID).to(315.0f);
delay(2000); // delay between movements
}
}
I tried this but did not see that in my library directory: Mbed Libray not found
Thank you.



