Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 10, 2020 02:47
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 parzibyte/7248a537a9b0ac8ada98de45f543faf5 to your computer and use it in GitHub Desktop.
Save parzibyte/7248a537a9b0ac8ada98de45f543faf5 to your computer and use it in GitHub Desktop.
contador = 0
for clave in diccionario:
valor = diccionario.get(clave)
bit = numero[contador]
estado = GPIO.LOW
if bit == "1":
estado = GPIO.HIGH
GPIO.output(valor, estado)
contador = contador + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment