Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask import Flask, render_template
- import sys
- ''' Importing from my self made file '''
- from keybord_car import carConnect, carRight, carLeft, carFwrd,
- carBack, carStop
- app = Flask(__name__)
- @app.route('/control')
- def control():
- return render_template('control.html')
- if __name__ == "__main__":
- app.run(host='192.168.43.205')
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>controller web page</title>
- </head>
- <body>
- <button >Car connect </button>
- <button >Car forward </button>
- <button >Car back </button>
- <button >Car right </button>
- <button >Car left </button>
- </body>
- </html>
Add Comment
Please, Sign In to add comment