Esempio n. 1
0
int main(void) {
	int counter = 0;
	
	ConsoleIO_Init();
	InitLED();
  printf("Hello world!\r\n");
	for(;;) {	   
	  counter++;
#if DEMO_GETS /* enable this to use gets() too */
	  printf("Enter a string:\r\n");
    if (gets(buffer)!=NULL) {
      printf("you entered: %s\r\n", buffer);
    }
    NegLED();
#else
	  printf("counter: %d\r\n", counter);
#if DEMO_USE_FLOAT
    printf("float value: %f\r\n", 3.75f);
#endif
    if ((counter%32)==0) { /* blink LED slowly so it is better visible */
      NegLED();
    }
#endif
	}
	return 0;
}
Esempio n. 2
0
int main(void)
{
	int counter = 0;
	
	ConsoleIO_Init();
	InitLED();
	for(;;) {	   
	  counter++;
	  printf("Hello world!\r\n");
	  if ((counter%32)==0) {
      NegLED();
	  }
	}
	
	return 0;
}