Commit 3132bcd3 authored by Kristian Tan's avatar Kristian Tan

Set board mode

parent 954ac304
...@@ -3,6 +3,7 @@ from flask import Flask, render_template ...@@ -3,6 +3,7 @@ from flask import Flask, render_template
import RPi.GPIO as GPIO import RPi.GPIO as GPIO
app = Flask(__name__) app = Flask(__name__)
GPIO.setmode(GPIO.BCM)
# Create a dictionary called pins to store the pin number, name, and pin state: # Create a dictionary called pins to store the pin number, name, and pin state:
pins = { pins = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment