könnte der code stimmen ?Code:/* * **************************************************************************** * RP6 ROBOT SYSTEM - RP6 BASE TESTS * **************************************************************************** * Test: Base Test 1 * Author(s): D. Ottensmeyer * **************************************************************************** * Description: * This is a small test for the RP6 ROBOT BASE. * * ############################################################################ * The Robot does NOT move in this example! You can simply put it on a table * next to your PC and you should connect it to the PC via the USB Interface! * ############################################################################ * **************************************************************************** */ /*****************************************************************************/ // Includes: #include "RP6RobotBaseLib.h" // The RP6 Robot Base Library. // Always needs to be included! /*****************************************************************************/ // Defines: /*****************************************************************************/ // Variables: /*****************************************************************************/ // Functions: /*****************************************************************************/ // Main function - The program starts here: int main(void) { initRobotBase(); // Always call this first! The Processor will not // work correctly otherwise. // --------------------------------------- // Write messages to the Serial Interface // (here it is a RP6 text logo): writeString_P("\n\n _______________________\n"); writeString_P(" \\| RP6 ROBOT SYSTEM |/\n"); writeString_P(" \\_-_-_-_-_-_-_-_-_-_/\n\n"); writeString_P("################\n"); writeString_P("<<RP6 Base>>\n"); writeString_P(" Base - Test 1 \n"); writeString_P(" Version 1.00 \n"); writeString_P("################\n\n"); mSleep(2500); // Clear the four Status LEDs: setLEDs(0b0000); /*****************************************************************************/ // Main test program: DDRC |= (SDA); // PC0, PC1 als Ausgänge definieren while (true) { PORTC |= SDA; // PC1 high mSleep(1000); PORTC &= ~SDA; // PC1 low } /*****************************************************************************/ // End of main: return 0; } /****************************************************************************** * Additional info * **************************************************************************** * Changelog: * - v. 1.0 (initial release) 01.03.2008 by D. Ottensmeyer * * **************************************************************************** */ /*****************************************************************************/
Lesezeichen