Newer
Older

Guillaume Blanchy
committed
# and emit a warning otherwise
if not arm64_imports:
print(colored(f'Warning: Required packages are missing.\n'
f'Please run ./env.sh at command prompt to update your virtual environment\n', 'yellow'))

Guillaume Blanchy
committed
else:
print(colored(f'Not running on the Raspberry Pi platform.\nFor simulation purposes only...', 'yellow'))
current_time = datetime.now()
print(current_time.strftime("%Y-%m-%d %H:%M:%S"))
# for testing
if __name__ == "__main__":
ohmpi = OhmPi(config='ohmpi_param.json')
ohmpi.run_measurement()
#ohmpi.read_quad('breadboard.txt')
#ohmpi.measure()
#time.sleep(20)
#ohmpi.stop()