Merge pull request #282 from makermelissa/i2smic
Add Pi B Rev 2 to i2smic board list
This commit is contained in:
commit
caba9aa589
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ I2S microphone support.
|
||||||
shell.bail("Non-Raspberry Pi board detected.")
|
shell.bail("Non-Raspberry Pi board detected.")
|
||||||
pi_model = shell.get_board_model()
|
pi_model = shell.get_board_model()
|
||||||
print("{} detected.\n".format(pi_model))
|
print("{} detected.\n".format(pi_model))
|
||||||
if pi_model in ("RASPBERRY_PI_ZERO", "RASPBERRY_PI_ZERO_W"):
|
if pi_model in ("RASPBERRY_PI_ZERO", "RASPBERRY_PI_ZERO_W", "RASPBERRY_PI_B_REV2"):
|
||||||
pimodel_select = 0
|
pimodel_select = 0
|
||||||
elif pi_model in ("RASPBERRY_PI_2B", "RASPBERRY_PI_3B", "RASPBERRY_PI_3B_PLUS", "RASPBERRY_PI_3A_PLUS", "RASPBERRY_PI_ZERO_2_W"):
|
elif pi_model in ("RASPBERRY_PI_2B", "RASPBERRY_PI_3B", "RASPBERRY_PI_3B_PLUS", "RASPBERRY_PI_3A_PLUS", "RASPBERRY_PI_ZERO_2_W"):
|
||||||
pimodel_select = 1
|
pimodel_select = 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue