浏览代码

Use CPU info to determine if this is a Raspberry Pi

mendhak 2 年之前
父节点
当前提交
005cff1cd5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      RaspberryPi_JetsonNano/python/lib/waveshare_epd/epdconfig.py

+ 1 - 0
RaspberryPi_JetsonNano/python/lib/waveshare_epd/epdconfig.py

@@ -235,6 +235,7 @@ class SunriseX3:
 
 
 
 
 def is_raspberry_pi():
 def is_raspberry_pi():
+    # https://raspberrypi.stackexchange.com/a/139704/540
     CPUINFO_PATH = Path("/proc/cpuinfo")
     CPUINFO_PATH = Path("/proc/cpuinfo")
 
 
     if not CPUINFO_PATH.exists():
     if not CPUINFO_PATH.exists():