8181
8282def getRPIHardwareRevCode ():
8383 """
84- Returns slightly more descriptive information on the hardware revision of the Raspberry Pi.
85- If it can't find anything, it returns "NOT_FOUND"
86- If there's an error while reading the file, it returns a None
87- Examples of strings returned : "Model B Rev 2", "Model A+", "Pi 3 Model B", etc
84+ Returns the hardware revision of the Raspberry Pi.
85+ If it can't find anything, it returns "NOT_FOUND".
86+ If there's an error while reading the file, it returns a None.
87+ Examples of strings returned : "Model B Rev 2", "Model A+", "Pi 3 Model B", etc.
8888 Look into the dictionary to see all the possible variants.
8989 """
9090 cpuinfo_lines = readLinesFromFile ("/proc/cpuinfo" )
@@ -105,8 +105,8 @@ def getRPIHardwareRevCode():
105105def getRPIGenerationCode ():
106106 """
107107 Returns the Raspberry Pi's generation model.
108- If it can't find anything, it returns "NOT_FOUND"
109- If there's an error while reading the file, it returns a None
108+ If it can't find anything, it returns "NOT_FOUND".
109+ If there's an error while reading the file, it returns a None.
110110 Depending on the Raspberry Pi's model, the function can return the following strings:
111111 "RPI0"
112112 "RPI1"
0 commit comments