BrickUp API Service for Docker version.

readValueBoard.ino 739B

123456789101112131415161718192021222324252627282930
  1. #include <FR_ValueBoard.h>
  2. FR_ValueBoard VB(A5,A4,A3,A2); //DCMotor Board
  3. //FR_ValueBoard VB(12,2,A0,A1); //Servo Board
  4. void setup() {
  5. // put your setup code here, to run once:
  6. Serial.begin(9600);
  7. }
  8. void loop() {
  9. // put your main code here, to run repeatedly:
  10. Serial.print("1:");
  11. Serial.print(VB.readValue(1));
  12. Serial.print(" , 2:");
  13. Serial.print(VB.readValue(2));
  14. Serial.print(" , 3:");
  15. Serial.print(VB.readValue(3));
  16. Serial.print(" , 4:");
  17. Serial.print(VB.readValue(4));
  18. Serial.print(" , 5:");
  19. Serial.print(VB.readValue(5));
  20. Serial.print(" , 6:");
  21. Serial.print(VB.readValue(6));
  22. Serial.print(" , 7:");
  23. Serial.print(VB.readValue(7));
  24. Serial.print(" , 8:");
  25. Serial.println(VB.readValue(8));
  26. }