Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 8427104

Browse files
committed
Update Braccio.cpp
Remove if for SAM architectures. Servo library has been modified.
1 parent 7478cb5 commit 8427104

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

src/Braccio.cpp

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,13 @@ _Braccio::_Braccio() {
4646
*/
4747
unsigned int _Braccio::begin() {
4848
// initialization pin Servo motors
49-
#if defined(ARDUINO_ARCH_SAMD)
50-
base.attach(11);
51-
shoulder.attach(7);
52-
elbow.attach(9);
53-
wrist_rot.attach(6);
54-
wrist_ver.attach(8);
55-
gripper.attach(3);
56-
#else
57-
base.attach(11);
58-
shoulder.attach(10);
59-
elbow.attach(9);
60-
wrist_rot.attach(6);
61-
wrist_ver.attach(5);
62-
gripper.attach(3);
63-
#endif
64-
49+
base.attach(11);
50+
shoulder.attach(10);
51+
elbow.attach(9);
52+
wrist_rot.attach(6);
53+
wrist_ver.attach(5);
54+
gripper.attach(3);
55+
6556
//For each step motor this set up the initial degree
6657
base.write(90);
6758
shoulder.write(45);

0 commit comments

Comments
 (0)