Remove silly GPIO pins for buttons

I'm finally giving in and will now connect stuff via a breadboard...
Risky move though, I already fried one DHT22 by plugging the connector
in the wrong way around -.-
This commit is contained in:
FliegendeWurst 2023-10-14 11:37:00 +02:00
parent 0266f9c465
commit f8de136019
3 changed files with 4 additions and 11 deletions

View File

@ -16,7 +16,7 @@ rustPlatform.buildRustPackage {
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
cargoBuildFlags = [ "--no-default-features" "--bin" "main_loop" ]; cargoBuildFlags = [ "--no-default-features" "--bin" "take_measurement" ];
buildInputs = [ sqlite ]; buildInputs = [ sqlite ];

View File

@ -326,13 +326,6 @@ fn main_loop(mut disp: Oled, mut ctx: ContextDefault<Oled>) {
let mut last_button = Instant::now(); let mut last_button = Instant::now();
let mut menu = vec![]; let mut menu = vec![];
// high pins for buttons
let _high_outputs = gpiocdev::Request::builder()
.on_chip("/dev/gpiochip0")
.with_lines(&[23, 24])
.as_output(Value::Active)
.request()
.unwrap();
let lines = gpiocdev::Request::builder() let lines = gpiocdev::Request::builder()
.on_chip("/dev/gpiochip0") .on_chip("/dev/gpiochip0")
.with_line(19) .with_line(19)