checking for attribute in board too
This commit is contained in:
parent
4fddeeb4a8
commit
9a29cd95de
@ -54,7 +54,7 @@ try:
|
|||||||
spi_miso = board.D9 #spi Microcomputer In Serial Out
|
spi_miso = board.D9 #spi Microcomputer In Serial Out
|
||||||
spi_cs = board.D5 #spi Chip Select
|
spi_cs = board.D5 #spi Chip Select
|
||||||
gpio_heat = board.D23 #output that controls relay
|
gpio_heat = board.D23 #output that controls relay
|
||||||
except NotImplementedError:
|
except (NotImplementedError,AttributeError):
|
||||||
print("not running on blinka recognized board, probably a simulation")
|
print("not running on blinka recognized board, probably a simulation")
|
||||||
|
|
||||||
### Thermocouple Adapter selection:
|
### Thermocouple Adapter selection:
|
||||||
@ -128,7 +128,7 @@ sim_R_ho_air = 0.05 # K/W " with internal air circulation
|
|||||||
|
|
||||||
# if you want simulations to happen faster than real time, this can be
|
# if you want simulations to happen faster than real time, this can be
|
||||||
# set as high as 1000 to speed simulations up by 1000 times.
|
# set as high as 1000 to speed simulations up by 1000 times.
|
||||||
sim_speedup_factor = 1
|
sim_speedup_factor = 10
|
||||||
|
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user