33 lines
288 B
C++
33 lines
288 B
C++
|
|
||
|
#include "WProgram.h"
|
||
|
void setup();
|
||
|
void loop();
|
||
|
void setup()
|
||
|
{
|
||
|
Serial.begin(9600);
|
||
|
}
|
||
|
|
||
|
|
||
|
void loop()
|
||
|
{
|
||
|
|
||
|
while (Serial.available()>0)
|
||
|
{
|
||
|
|
||
|
Serial.print(Serial.read(),BYTE);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
int main(void)
|
||
|
{
|
||
|
init();
|
||
|
|
||
|
setup();
|
||
|
|
||
|
for (;;)
|
||
|
loop();
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|