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;
  int buffer[1024];

  InitLED();
  InitADC();
  for(;;) {	   
    counter++;

    buffer[counter%1024]=singleCapture()-32768;
    // wait();
    if ((counter%1024)==0) { /* blink LED slowly so it is better visible */
      NegLED();
    }
    // buffer[counter%64]=counter;
    /* printf("Enter a string:\r\n");

    if (gets(buffer)!=NULL)
    {
		printf("you entered: %s\r\n", buffer);
    }
    */
  }	
  return 0;
}
Esempio n. 3
0
int main(void) {
  int counter = 0;
	
  InitLED();
  for(;;) {	   
    counter++;
    wait();
    if ((counter%128)==0) { /* blink LED slowly so it is better visible */
      NegLED();
    }
  }	
  return 0;
}
Esempio n. 4
0
int main(void)
{
	int counter = 0;
	
	ConsoleIO_Init();
	InitLED();
	for(;;) {	   
	  counter++;
	  printf("Hello world!\r\n");
	  if ((counter%32)==0) {
      NegLED();
	  }
	}
	
	return 0;
}