Last active
August 3, 2019 17:29
-
-
Save amusarra/645c34b5dab4e3b18eb50529d2ba76a2 to your computer and use it in GitHub Desktop.
Raspberry PI Sense HAT: Come pubblicare i dati su CloudAMQP via MQTT
This file contains hidden or 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/env python | |
| from sense_hat import SensHat | |
| sense = SenseHat() | |
| sense.show_message("Benvenuto su https://www.dontesta.it") |
This file contains hidden or 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/env python | |
| from sense_hat import SenseHat | |
| sense = SenseHat() | |
| while True: | |
| temperature = sense.get_temperature() | |
| pressure = sense.get_pressure() | |
| humidity = sense.get_humidity() | |
| sense.show_message("The temperaturen is %d, the pressure | |
| is %d, and the humidity is %d." % (temperature, pressure, humidity) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment