123456789101112131415161718192021222324252627282930 |
- #include <FR_ValueBoard.h>
- FR_ValueBoard VB(A5,A4,A3,A2); //DCMotor Board
- //FR_ValueBoard VB(12,2,A0,A1); //Servo Board
- 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("1:");
- Serial.print(VB.readValue(1));
- Serial.print(" , 2:");
- Serial.print(VB.readValue(2));
- Serial.print(" , 3:");
- Serial.print(VB.readValue(3));
- Serial.print(" , 4:");
- Serial.print(VB.readValue(4));
- Serial.print(" , 5:");
- Serial.print(VB.readValue(5));
- Serial.print(" , 6:");
- Serial.print(VB.readValue(6));
- Serial.print(" , 7:");
- Serial.print(VB.readValue(7));
- Serial.print(" , 8:");
- Serial.println(VB.readValue(8));
- }
|