BrickUp API Service for Docker version.

readIR.ino 304B

1234567891011121314151617
  1. #include <FR_IR.h>
  2. FR_IR ir(A1,A0);
  3. void setup() {
  4. // put your setup code here, to run once:
  5. Serial.begin(9600);
  6. }
  7. void loop() {
  8. // put your main code here, to run repeatedly:
  9. Serial.print("A:");
  10. Serial.print(ir.readAnalog());
  11. Serial.print(" , D:");
  12. Serial.println(ir.readDigital());
  13. }