Skip to content

Commit

Permalink
flips polarity of sensor reading for drv5056
Browse files Browse the repository at this point in the history
  • Loading branch information
tlietz committed Mar 17, 2024
1 parent 7630522 commit 5a2f459
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions firmware/freedom/helpers/sensor_read.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#pragma once

#include "quantum.h"
#include "analog.h"
#include "quantum.h"

// If the voltage output of the sensor increases as the switch is pressed further, POLARITY_FLIP is false.
// otherwise, POLARITY_FLIP is true.
#define POLARITY_FLIP true
// If the voltage output of the sensor increases as the switch is pressed
// further, POLARITY_FLIP is false. otherwise, POLARITY_FLIP is true.
#define POLARITY_FLIP false

int sensorRead(pin_t pin);

int oversample(pin_t pin);
int oversample(pin_t pin);

0 comments on commit 5a2f459

Please sign in to comment.