paul- wrote: 
> Yes, wiring pi needs updated.  Gordon has not released the source code
> with the updates, so I made some updates myself, but perhaps there is
> something else needed.   Does gpio readall show the proper stated of the
> gpio?

Thanks Paul

gpio readall gives the following.  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.


Code:
--------------------
    tc@pCPLoungePi4:~$ gpio readall
  +-----+-----+---------+------+---+---Pi 4B--+---+------+---------+-----+-----+
  | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
  +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
  |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |
  |   2 |   8 |   SDA.1 | ALT2 | 1 |  3 || 4  |   |      | 5v      |     |     |
  |   3 |   9 |   SCL.1 | ALT2 | 0 |  5 || 6  |   |      | 0v      |     |     |
  |   4 |   7 | GPIO. 7 | ALT0 | 0 |  7 || 8  | 0 | ALT0 | TxD     | 15  | 14  |
  |     |     |      0v |      |   |  9 || 10 | 1 | ALT2 | RxD     | 16  | 15  |
  |  17 |   0 | GPIO. 0 |  OUT | 1 | 11 || 12 | 1 | IN   | GPIO. 1 | 1   | 18  |
  |  27 |   2 | GPIO. 2 | ALT5 | 1 | 13 || 14 |   |      | 0v      |     |     |
  |  22 |   3 | GPIO. 3 | ALT5 | 0 | 15 || 16 | 1 | ALT0 | GPIO. 4 | 4   | 23  |
  |     |     |    3.3v |      |   | 17 || 18 | 1 | IN   | GPIO. 5 | 5   | 24  |
  |  10 |  12 |    MOSI |  OUT | 1 | 19 || 20 |   |      | 0v      |     |     |
  |   9 |  13 |    MISO | ALT2 | 0 | 21 || 22 | 1 | ALT4 | GPIO. 6 | 6   | 25  |
  |  11 |  14 |    SCLK |   IN | 0 | 23 || 24 | 1 | ALT5 | CE0     | 10  | 8   |
  |     |     |      0v |      |   | 25 || 26 | 1 | ALT4 | CE1     | 11  | 7   |
  |   0 |  30 |   SDA.0 | ALT4 | 1 | 27 || 28 | 0 | ALT3 | SCL.0   | 31  | 1   |
  |   5 |  21 | GPIO.21 | ALT1 | 1 | 29 || 30 |   |      | 0v      |     |     |
  |   6 |  22 | GPIO.22 | ALT4 | 1 | 31 || 32 | 1 | IN   | GPIO.26 | 26  | 12  |
  |  13 |  23 | GPIO.23 | ALT2 | 1 | 33 || 34 |   |      | 0v      |     |     |
  |  19 |  24 | GPIO.24 | ALT2 | 1 | 35 || 36 | 0 | ALT1 | GPIO.27 | 27  | 16  |
  |  26 |  25 | GPIO.25 | ALT0 | 1 | 37 || 38 | 0 | IN   | GPIO.28 | 28  | 20  |
  |     |     |      0v |      |   | 39 || 40 | 1 | ALT3 | GPIO.29 | 29  | 21  |
  +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
  | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
  +-----+-----+---------+------+---+---Pi 4B--+---+------+---------+-----+-----+
  
--------------------


------------------------------------------------------------------------
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