MiloSobral's picture
Adding support for Portiloop V2
086b12f
raw
history blame contribute delete
273 Bytes
import io
def is_coral():
try:
with io.open('/sys/firmware/devicetree/base/model', 'r') as m:
line = m.read().lower()
if 'phanbell' in line or "coral" in line: return True
except Exception: pass
return False
ADS = is_coral()