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

6 lines
105 B
Python

from gpiozero import pi_info
piBoardInfo = pi_info('a020d3') # 3B+
assert(piBoardInfo.model == '3B+')