![]() Global z # Needed to modify global copy of globvarĭef set_z_to_one(): # Needed to modify global copy of globvarĪpp.run(debug=True,host='0.0.0.0', port=3860) Python from flask import Flask, flash, redirect, render_template, request, session, abort The code is a bit messy with the global variables and all now due to my desperation to just make it work. Try to understand that I have been at this for a week, and have pulled every trick I know. ![]() The motors don't stop, they just slow down to a painful pace, and the web page gets stuck trying to load an infinite loop. The user pushes the (what's called for now) login button, and the motors spin, and pushes the stop motors button to stop. At the moment, the visual code is a bit of a mess due to me wanting to have a login system, and realizing that with my limited time to get this done, I need to focus on making it work.Īt the moment, the stepper motors work fine. ![]() My ultimate goal with this program is to have a Flask web app be projected, someone connects to it, and they can control stepper motors with it using the Adafruit Stepper Motor HAT.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |