Skip to content

Instantly share code, notes, and snippets.

@Raghav-Bell
Created May 12, 2022 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raghav-Bell/e3d5b9ca008daf60892aa954d3bc0796 to your computer and use it in GitHub Desktop.
Save Raghav-Bell/e3d5b9ca008daf60892aa954d3bc0796 to your computer and use it in GitHub Desktop.
BOLT meets Quantum 2
if received_ message=='01':
mybolt.digitalWrite('0','LOW')
mybolt.digitalWrite('1','HIGH')
elif received_ message=='10':
mybolt.digitalWrite('0','HIGH')
mybolt.digitalWrite('1','LOW')
elif received_ message=='11':
mybolt.digitalWrite('0','HIGH')
mybolt.digitalWrite('1','HIGH')
else:
mybolt.digitalWrite('0','LOW')
mybolt.digitalWrite('1','LOW')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment