- 라즈베리파이 보드 빵판 21번 핀에 led를 연결해놓고, 웹서버에서 ON/OFF 버튼으로 LED를 껐다 켰다 하는 프로그램 import RPi.GPIO as GPIO from flask import Flask, render_template app=Flask(__name__) GPIO.setmode(GPIO.BCM) GPIO.setup(21,GPIO.OUT) def led_on(): GPIO.output(21,0) return def led_off(): GPIO.output(21,1) return @app.route('/') def index(): led_off() return render_template('index.html',state='OFF') @app.route('/on/') def on():..