Created
February 10, 2020 02:47
-
-
Save parzibyte/7248a537a9b0ac8ada98de45f543faf5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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