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
#!/usr/bin/python | |
# A simple Python application for controlling a relay board from a Raspberry Pi | |
# The application uses the GPIO Zero library (https://gpiozero.readthedocs.io/en/stable/) | |
# The relay is connected to one of the Pi's GPIO ports, then is defined as an Output device | |
# in GPIO Zero: https://gpiozero.readthedocs.io/en/stable/api_output.html#outputdevice | |
import sys | |
import time |
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
[ { "gentilico" : "afegãne", | |
"nome_pais" : "Afeganistão", | |
"nome_pais_int" : "Afghanistan", | |
"sigla" : "AF" | |
}, | |
{ "gentilico" : "sul-africana", | |
"nome_pais" : "África do Sul", | |
"nome_pais_int" : "South Africa", | |
"sigla" : "ZA" | |
}, |