chill wrote: 
> Nothing seems to change if I run it again with a button pressed though. 
> And if I use 'gpio read 24', I always get a value of '1' whether the
> button is pressed or not.

I'd forgotten that without sbpd I need to configure the pins manually,
i.e. I need to set each pin to be input or output, and I need to set the
pull-up resistor as required.  But I still can't get it to register a
button press.  

With:

Code:
--------------------
    gpio mode 24 in
  gpio mode 24 up
  gpio read 24
  
--------------------


...I get a value of 1 regardless of whether I'm pressing a button.  Even
with 'gpio mode 24 down', which I thought should pull the pin to GND, I
still get 
a value of 1.  However, the table that's output by gpio readall does
update to show that GPIO24 is now set up as an input pin.

I can't seem to set a value for GPIO24 either.  With:

Code:
--------------------
    gpio mode 24 out
  gpio write 24 0
    
Code:
--------------------
        
    
    ...the value stays at 1.
    
    I wonder if this is me overlooking something, or if there an issue with the 
latest gpio utility and the RPi4.  I'll have another go this evening, without 
my button pcb and just using a jump wire.  I'll also compare with what I get on 
a 3B+.


------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110727

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to