1
0
Fork 0
Browse Source

import platform module.

The module is used to help determine which device is running the program. The device name allows the rest of the system to know what this device needs when I makes it RESTAPI calls.
unstable
Craig Oates 3 years ago
parent
commit
564ee5d938
  1. 1
      relay.py

1
relay.py

@ -3,6 +3,7 @@
import RPi.GPIO as GPIO
import time
import requests
import platform
relay_pin = 11
#GPIO.setmode(GPIO.BCM) # GPIO numbers instead of board numbers.