Skip to content

Commit

Permalink
test fix hx711
Browse files Browse the repository at this point in the history
  • Loading branch information
vospascal committed Apr 30, 2021
1 parent cee79a4 commit 5efd125
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion PedalBox/Pedal.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Pedal
if (rawValue < 0) rawValue = 0;
}
if (_signal == 1) {
rawValue = _loadCell.read();
rawValue = _loadCell.get_value(1);
if (rawValue > _loadcell_max_val) {
rawValue = 0;
}
Expand Down
18 changes: 9 additions & 9 deletions PedalBox/PedalBox.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ void setup() {
// initialize serial communication at 115200 bits per second:
Serial.begin(115200);
pedals.setThrottleBits("10bit", "10bit");
pedals.setThrottleAnalogPin(A0);
// //pedals.setThrottleADSChannel(1);
// //pedals.setThrottleLoadCell(6,5);
// pedals.setThrottleAnalogPin(A0);
//pedals.setThrottleADSChannel(1);
pedals.setThrottleLoadcell(6,5);
//
pedals.setBrakeBits("10bit", "10bit");
pedals.setBrakeAnalogPin(A3);
// //pedals.setBrakeADSChannel(1);
// //pedals.setBrakeLoadcell(7,5);
// pedals.setBrakeAnalogPin(A3);
//pedals.setBrakeADSChannel(1);
pedals.setBrakeLoadcell(7,5);
//
pedals.setClutchBits("10bit", "10bit");
pedals.setClutchAnalogPin(A1);
// //pedals.setClutchADSChannel(1);
// //pedals.setClutchLoadcell(8,5);
// pedals.setClutchAnalogPin(A1);
//pedals.setClutchADSChannel(1);
pedals.setClutchLoadcell(8,5);
//
pedals.setup();

Expand Down

0 comments on commit 5efd125

Please sign in to comment.