Zu Punkt 1:
Code:
#include "../m32servolib/RP6ControlServoLib.h"
uint16_t pos = 0;
int main(void)
{
initRP6Control();
initLCD();
showScreenLCD("################", "################");
mSleep(1500);
showScreenLCD("<<RP6 Control>>", "<<LC2 - DISPLAY>>");
mSleep(2500);
showScreenLCD(" Servo - Test xD ", " Version 1.00 ");
mSleep(2500);
clearLCD();
setLEDs(0b111111);
mSleep(500);
setLEDs(0b000000);
initSERVO(SERVO7);
startStopwatch2();
while(true)
{
if (getStopwatch2() > 48) {
servo7_position = pos;
//servo2_position = pos;
setCursorPosLCD(0, 0);
writeStringLCD_P("Servopos.: ");
writeIntegerLCD(pos, DEC);
writeStringLCD_P(" ");
pos++;
if (pos > RIGHT_TOUCH) {pos = 0;}
setStopwatch2(0);
}
task_SERVO();
mSleep(3);
}
return 0;
}
Zu Punkt 2:
Laut Beschreibung ist PD5 der 9te Pin des IO/Steckers. Also dort wo die Einkerbung ist links.
Zu Punkt 3:
Hab jetzt den 3ten Servo versucht (ohne Erfolg)
Einen hab ich auch schon mit einer 9V Blockbatterie probiert, auch ohne Erfolg...
Lesezeichen