Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello,
any idea what's wrong in the following simple code? On my PC I can read only up-steps, no down steps. Seems the second for-loop never works.
#include "mbed.h" Serial pc2(USBTX, USBRX); // tx, rx int main() { unsigned char i=0; while (1) { for (i=0;i<=255;i++) printf("\nup %i",i); for (i=0;i<=255;i++) printf("\ndown %i",255-i); } }Thanks, Dirck