1234567891011121314151617 |
- #include <FR_IR.h>
- FR_IR ir(A1,A0);
- void setup() {
- // put your setup code here, to run once:
- Serial.begin(9600);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- Serial.print("A:");
- Serial.print(ir.readAnalog());
- Serial.print(" , D:");
- Serial.println(ir.readDigital());
- }
|