ok, anders:
der code funzt ohne probleme:
Code:
#include "RP6RobotBaseLib.h"
// -------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------
int main(void)
{
initRobotBase();
powerON();
while(true)
{
uint32_t wert1 = 700 / 100 * 100;
writeInteger(wert1, DEC);writeString("\n");
mSleep(5000);
}
return 0;
}
der code gibt einen anderen wert aus, und das obwohl zu dem zeitpunkt, wo "wert1" ausgegeben werden soll, "wert1" nur 16Bit groß ist!?
Code:
#include "RP6RobotBaseLib.h"
// -------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------
int main(void)
{
initRobotBase();
powerON();
while(true)
{
uint32_t wert1 = 700 * 100 / 100;
writeInteger(wert1, DEC);writeString("\n");
mSleep(5000);
}
return 0;
}
THX
aircode
Lesezeichen