Repository navigation
Add Arduino Uno .ino / Sketch compile support via Arduino CLI - #9
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
tools/arduino-cli/or on PATH) rather than attempting any automated library resolution or source repair.Description
ArduinoCliTool,find_arduino_cli_tool, core list/install, compile command builder), sketch preparation and validation (prepare_sketch_source,validate_sketch_compile_request), and generated-HEX location (locate_generated_hex) ingui/portable_avr_control_studio.pyso the app can build Uno sketches to .hex..inoor sketch folder, optional output folder,CompileandCompile + Uploadbuttons, background compile thread, streamed Logs output, disabled buttons while running, and clear success/failure messages; on success the generated .hex is selected for upload and the existing avrdude upload flow is reused.arduino:avrcore is present (witharduino-cli core list/core install), and safe handling of single.inofiles by copying into a temporary sketch folder without modifying user source.release/artifacts/windows/tools/arduino-cli/into the customer package, and updated README, docs (docs/*), release scripts, and CI smoke checks to document Arduino CLI requirements, Uno-only scope, external-library limitations, and release/packaging instructions.Testing
python -m py_compile gui/portable_avr_control_studio.py release/scripts/assemble_customer_package.pyand the checks passed..inoand sketch-folder acceptance, non-.inorejection, missing-CLI error text, and custom-sketch protocol warning, and those smoke assertions passed.release/scripts/assemble_customer_package.py --no-zip) using dummy EXE/HEX/avrdude/arduino-cli staging to verify optionaltools/arduino-cli/copy behavior and the assembly logic, and it succeeded.arduino-cli compile --fqbn arduino:avr:uno firmware/PortableAVRControlStudio) in this environment butarduino-cliwas not installed here (tooling not available), so the real compile step was not executed in this container; CI includes an AVR job that installs Arduino CLI for that check.Codex Task