Blame view

test.c 376 Bytes
190bfc15   grouille   MAJ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  #include <stdio.h>
  #include <stdlib.h>
  #include <Serial.h>
  #include <unistd.h>
  
  //#define rxPin 0
  //#define txPin 1
  
  //SoftwareSerial mySerial = SoftwareSerial(rxPin, txPin);
  
  void setup()
  {
  	//DDRD = 0x02;
  	Serial.begin(9600);
  }
  
  void loop()
  {
  	//if(mySerial.available() > 0)
  	//{
  	Serial.println('A');
  	//}
  }
  
  int main(void)
  {
  	while(1)
  	{
  		loop();
  		_delay_ms(2000);
  	}
  }