Skip to content

Commit

Permalink
Display help on the first page
Browse files Browse the repository at this point in the history
  • Loading branch information
madeindjs committed Dec 19, 2018
1 parent 2745a45 commit e0d1879
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
from flask import Flask
from flask import Flask, Response
from components.LCD.I2CLCD1602 import display


app = Flask(__name__)

@app.route("/")
def hello():
return """An Python Flask web server to master some Raspberry PI components. This server expose some routes:
content = """<h1>Elevator web server</h1>
<p>An Python Flask web server to master some Raspberry PI components. This server expose some routes:</p>
- GET `/lcd/display/<content>`
- GET `/led/blink`
<ul>
<li>GET `/lcd/display/<content>`</li>
<li>GET `/led/blink`</li>
</ul>
"""
return Response(content, mimetype='text/html')

@app.route('/lcd/display/<content>')
def display_lcd(content):
Expand Down

0 comments on commit e0d1879

Please sign in to comment.