ubuntu-buildroot/support/testing/tests/package/sample_python_gpiozero.py

6 lines
105 B
Python
Raw Permalink Normal View History

2024-04-01 15:19:46 +00:00
from gpiozero import pi_info
piBoardInfo = pi_info('a020d3') # 3B+
assert(piBoardInfo.model == '3B+')