Question: 1 . Rewrite the def get _ pi _ info ( ) : function from Lab # 4 by adding the command: pinout and running

1. Rewrite the def get_pi_info() :
function from Lab #4 by adding the command: "pinout" and running it via
the subprocess module as required for the other portions of the function.
This function should now display the following information (output will vary
according to Raspberry Pi version):
Description : Raspberry Pi 5B rev 1.0
Revision : d04170
SoC : BCM2712
RAM : 8GB
Storage : MicroSD
USB ports : 4(of which 2 USB3)
Ethernet ports : 1(1000Mbps max. speed)
Wi-fi : True
Bluetooth : True
Camera ports (CSI) : 2
Display ports (DSI): 2
,--------------------------------.
| oooooooooooooooooooo J8 : +====
|1ooooooooooooooooooo : |USB2
| Wi Pi Model 5B V1.0 fan +====
| Fi +---++---+|
||RAM||RP1|+====
||p +---++---+|USB3
||c -------+====
||i SoC |c|c J14|
(------- J7|s|s 12+======
| J2 bat uart 1|i|i oo | Net
| pwr\..|hd|...|hd|o|1|0+======
`-||-1o|m0|---|m1|--------------'
J8:
3V3(1)(2)5V
GPIO2(3)(4)5V
GPIO3(5)(6) GND
GPIO4(7)(8) GPIO14
GND (9)(10) GPIO15
GPIO17(11)(12) GPIO18
GPIO27(13)(14) GND
GPIO22(15)(16) GPIO23
3V3(17)(18) GPIO24
GPIO10(19)(20) GND
GPIO9(21)(22) GPIO25
GPIO11(23)(24) GPIO8
GND (25)(26) GPIO7
GPIO0(27)(28) GPIO1
GPIO5(29)(30) GND
GPIO6(31)(32) GPIO12
GPIO13(33)(34) GND
GPIO19(35)(36) GPIO16
GPIO26(37)(38) GPIO20
GND (39)(40) GPIO21
J2:
RUN (1)
GND (2)
J7:
COMPOSITE (1)
GND (2)
J14:
TR01 TAP (1)(2) TR00 TAP
TR03 TAP (3)(4) TR02 TAP
ip:'xxx.xxx.xxx.xxxx'
MAC address:'xx:yy:zz:aa:bb:cc'
Revision:'XnnnXn'
Serial:'00000000nXXnnnnn'
Model:'Raspberry Pi 5B rev 1.0'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!