kumquat-buildroot/support/testing/tests/package/sample_python_gpiozero.py
Peter Seiderer 0d0af210f7 support/testing: add python-gpiozero test
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-06-18 21:45:00 +02:00

6 lines
105 B
Python

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