Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino script upload #160

Open
wants to merge 17 commits into
base: DEV
Choose a base branch
from
Open

Arduino script upload #160

wants to merge 17 commits into from

Conversation

CollinKa
Copy link
Collaborator

merge the script for uploading the Arduino ino file with GUI

@CollinKa CollinKa linked an issue Dec 13, 2023 that may be closed by this pull request
Gui/QtGUIutils/QtApplication.py Outdated Show resolved Hide resolved
Gui/QtGUIutils/QtApplication.py Outdated Show resolved Hide resolved
Gui/QtGUIutils/QtApplication.py Outdated Show resolved Hide resolved
Gui/QtGUIutils/QtApplication.py Outdated Show resolved Hide resolved
logger.error("Error found:{}".format(err))
# self.deviceMap[device] = device
compileResult=subprocess.run(
"$GUI_dir/bin/arduino-cli compile --fqbn arduino:avr:uno $GUI_dir/FirmwareImages/relay_box_firmware/",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there the exact same code in 2 places?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "upload script" at Arduinowidget is for uploading the temperature monitoring script. And the one at QtApplication is for uploading the relay box script. The reason why I can't use "uploade script" in QtAplication for uploading temperature monitor script is that the button "Upload script" inside Arduinowidget can only connect the self function inside class ArduinoWidget.


def listResources(self):
self.ResourcesManager = visa.ResourceManager("@py")
self.ResourcesList = []
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function was removed? Do we not actually need it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

listResources() is needed. It is used for getting Arduino communication port from site_settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automate uploading firmware to Arduinos
3 participants