Giter Site home page Giter Site logo

silvijedj / autobuildmarlin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marlinfirmware/autobuildmarlin

0.0 0.0 0.0 437 KB

Visual Studio Code extension to more easily build Marlin Firmware

License: GNU General Public License v3.0

JavaScript 85.76% CSS 10.66% HTML 3.58%

autobuildmarlin's Introduction

Auto Build Marlin

"Auto Build Marlin" provides a simplified interface to configure, build, and upload Marlin Firmware.

The Auto Build tool automatically detects the correct environments for your MOTHERBOARD and provides an interface to build them. No more editing platformio.ini or scanning a long list of environments in the PlatformIO IDE. Just press the Build button and go!

The Configuration Editor provides an enhanced interface to locate and edit configuration options, making it easier to locate the options you need and to discover the features you didn't know you needed. This is only an alpha preview at this time and will probably have some issues. Use "Reopen Editor With… > Text Editor" to use the standard text editor. Stay tuned for more enhancements to this excellent new feature.

PlatformIO Required

When installing "Auto Build Marlin" you'll also be prompted to install the PlatformIO extension. PlatformIO handles all the details of the build and is required for "Auto Build Marlin" to function.

Usage

  • Start Visual Studio Code and open a project folder with Marlin Firmware version 2.0 or later. Be careful to open the folder containing platformio.ini and not the "Marlin" folder within it. (You may also use the Import Project… option from the "PlaformIO Home" page.)

  • The "File Explorer" should point to your Marlin Firmware folder like so:

Configuration Editor

  • Open the file Configuration.h or Configuration_adv.h to use the Configuration Editor. You may need to right-click on the window tab and choose "Reopen Editor with…" to activate the Config Editor. The Config Editor replaces the text view with a form divided up into sections.

    • Use the "Filter" field to locate options by name.
    • Click the "Show Comments" checkbox to show or hide comments.
    • Click the title of a section to hide/show that section.
    • Hold down alt/option and click on any title to hide/show all sections.
  • Configuration files are annotated to provide some hints to configuration tools. Edit the configuration file text to add your own @section markers, provide allowed values for options, or improve documentation. Please submit your improvements and suggestions to improve the configuration experience.

Auto Build

  • Click the Auto Build Marlin icon AutoBuild Icon in the Activity Bar (on the far side of the Visual Studio Code window) to activate the Auto Build Marlin sidebar panel.

    ABM Menu

  • Use the Show ABM Panel button (or click on any of the buttons in the toolbar) to open the Auto Build Marlin panel. If more than one target environment exists for your board you'll have to choose the specific environment to use before the build.

    Icon Action
    Build Start Marlin Build to test your Marlin build
    Upload Start Marlin Upload to install Marlin on your board
    Traceback Start Marlin Upload (traceback) to install Marlin with debugging
    Clean Start Marlin Clean to delete old build files
    Configure Open the Configuration Tool
  • The Auto Build Marlin panel displays information about your selected motherboard and basic machine parameters. Each board comes with one or more build environments that are used to generate the final Marlin binary. Choose the environment that best matches your MCU, bootloader, etc.

    Environments

Formatters

  • Open the Command Palette and choose "Format Marlin Code." The file will be formatted according to Marlin standards.
  • NOTE: The context menu item "Format Document With…" -> "Auto Build Marlin" doesn't work so ignore that menu command for now.

Internals

The Auto Build Marlin extension for VSCode contributes a welcome panel, registered commands, a web view panel, a custom editor, and (soon) a tree view. It is built in Javascript so we don't have to learn TypeScript.

autobuildmarlin's People

Contributors

thinkyhead avatar non-bin avatar sbaeder avatar gmagician avatar joakimbo avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.