mirror of
https://github.com/FliegendeWurst/raspi-oled.git
synced 2024-11-21 18:04:58 +00:00
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:
parent
0266f9c465
commit
f8de136019
@ -16,7 +16,7 @@ rustPlatform.buildRustPackage {
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
cargoBuildFlags = [ "--no-default-features" "--bin" "main_loop" ];
|
||||
cargoBuildFlags = [ "--no-default-features" "--bin" "take_measurement" ];
|
||||
|
||||
buildInputs = [ sqlite ];
|
||||
|
||||
|
@ -326,13 +326,6 @@ fn main_loop(mut disp: Oled, mut ctx: ContextDefault<Oled>) {
|
||||
let mut last_button = Instant::now();
|
||||
|
||||
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()
|
||||
.on_chip("/dev/gpiochip0")
|
||||
.with_line(19)
|
||||
|
Loading…
Reference in New Issue
Block a user