Solis 1 0 4 – Codes Editors Integrator Panel

broken image


  • Solis is a Live Design Output that integrates seamlessly with your favourite code editor to deliver real time, multi viewport previewing of HTML, CSS, SASS and LESS as you write it. Design Browser - Browser for Developers and Designers - Solis For Mac.
  • Solis is Andor's camera and spectrograph system control software. It is available as 32-bit and fully 64-bit enabled application for Windows (7, 8, 8.1 and 10), offering extensive data acquisition and export options to extract the very best out of Andor's detection solutions.
  • PowerFlex 525 Variable Frequency Drive Setup, Integration. This course will teach you everything you need to know to get started with PowerFlex 525 Variable Frequency Drives (VFDs). Course PointIO Hardware & Software Integration using RSLogix & Studio 5000.

PlatformIO IDE is the next-generation integrated development environment for IoT.

This inverter has no integrated d.c. Isolator and is ideal for installations which have separate d.c. Isolator(s) For systems that have two strings of panels (i.e. Two pairs of cables from the solar panels). Both pairs of inputs of this inverter need to be used. Efficiency over 97.8% MPPT efficiency over 99.5% Ultra wide input. Solis-1P8K-4G-US, Solis-1P8.6K-4G-US, Solis-1P9K-4G-US, Solis-1P10K-4G-US Figure 1.2 Bottom side view DC Switch Water drill hole DC input RS 485 AC input Wiring box LCD display 4 buttons LED lights 6.3 Settings 6.3.1 Set Time 6.3.2 Set Address 6.4 Advanced Info. 6.4.1 Alarm Message Contents.2.

  • Cross-platform build system without external dependencies to the OS software:

    • 800+ Boards
    • 35+ Development Platforms
    • 20+ Frameworks
  • C/C++ Intelligent Code Completion

  • C/C++ Smart Code Linter for rapid professional development

  • Library Manager for the hundreds popular libraries

  • Multi-projects workflow with multiple panes

  • Themes support with dark and light colors

  • Serial Port Monitor

  • Built-in Terminal with PlatformIO Core (CLI) and CLI tool (pio, platformio)

  • Built-in PlatformIO Home.

Visual Studio Code is a lightweight butpowerful source code editor which runs on your desktop and is available forWindows, macOS and Linux. It comes with built-in support for JavaScript,TypeScript and Node.js and has a rich ecosystem of extensions for otherlanguages (such as C++, C#, Python, PHP, Go) and runtimes (such as .NET and Unity)

Contents

  • Quick Start
  • Project Tasks
  • Debugging
  • Settings
  • Known issues

Note

Please note that you do not need to install PlatformIO Core (CLI) separately ifyou are going to use VSCode. PlatformIO Core (CLI) is built intoPlatformIO IDE and you will be able to use it within PlatformIO IDE Terminal.

  1. Download and install official Microsoft Visual Studio Code. PlatformIO IDE is built on top of it
  2. Open VSCode Package Manager
  3. Search for the official platformioideextension
  4. Install PlatformIO IDE.
Solis

This tutorial introduces you to the basics of PlatformIO IDE workflow and showsyou a creation process of a simple 'Blink' example. After finishing you willhave a general understanding of how to work with projects in the IDE.

  1. Click on 'PlatformIO Home' button on the bottom PlatformIO Toolbar
  1. Click on 'New Project', select a board and create new PlatformIO Project
  1. Open main.cpp file form src folder and replace its contents withthe next:

Warning

The code below works only in pair with Arduino-based boards. Pleasefollow to PlatformIO Project Examples repository for other pre-configured projects.

  1. Build your project with ctrl+alt+b hotkey (see all Key Bindings in'User Guide' section below) or using 'Build' button on the PlatformIO Toolbar

Further for reading:

  • Tutorials and Examples (step-by-step tutorials with debugging and unit testing)
  • Learn more about PlatformIO Toolbar and other commands (Upload,Clean, Serial Monitor) below.

Happy coding with PlatformIO!

PlatformIO IDE Toolbar is located in VSCode Status Bar (left corner)and contains quick access buttons for the popular commands.Each button contains hint (delay mouse on it).

  1. PlatformIO: Build
  2. PlatformIO: Upload
  3. PlatformIO: Clean
  4. Project environment switcher (if more than one environment is available).See Section [env] of 'platformio.ini' (Project Configuration File) .

There are 2 ways how to access PlatformIO Core (CLI):

  1. 'Terminal' icon on the PlatformIO Toolbar
  2. Left Activity Bar > PlatformIO (ant icon) > Quick Access > Miscellaneous > PlatformIO Core CLI

PlatformIO provides access to 'Project Task' where you can controlthe build process of the environments declared in 'platformio.ini' (Project Configuration File).Project Task Explorer is located in the VSCode Activity Bar under the brandedPlatformIO icon. You can also access it via 'VSCode Menu > Open View… >PlatformIO'.

Hint

Please note that you can drag/move 'Project Task' into to the another view withinVSCode, such as 'Explorer'.

PlatformIO IDE provides built-in tasks through the menu Terminal>RunTask.. (Build,Upload, Clean, Monitor, etc) and custom tasks per 'platformio.ini' (Project Configuration File) environment([env:***]). The default behavior is to use Terminal Panels for presentation,one panel dedicated to each unique task.

The PlatformIO IDE provides its own Problems Matcher named $platformio.You can use it later if you decide to change base task settings.

You can override existing tasks with your own presentation options. For example,let's configure PlatformIO Task Runner to use a NEW Terminal panel for each 'Build'command:

  1. The menu item Terminal>RunTask.. opens up a list of VSCodetasks for PlatformIO. In the line PlatformIO:Build, press thegear icon on the far right side of the list. This creates or opensthe file .vscode/tasks.json with some template code.
  2. Replace the template in tasks.json with this code

See more options in the official VSCode documentation.

Custom tasks can be added to tasks.json file located in the .vscode folderin the root of project. Please read the official documentation Tasks in VSCode.

This simple example demonstrates a custom monitor task which echoes input locally.There are a lot of other commands, please read more about PlatformIO Core (CLI) andits commands (CLI Guide).

If the platformio executable file is not in your system environment 'PATH', youcan provide the full path to the binary folder using the options field for the task. For example,if the platformio binary is located in the home folder '~/.platformio/penv/bin':

You can work with multiple project folders in Visual Studio Code withmulti-root workspaces. This can be very helpful when you are working onseveral related projects at the same time. Read more in the documentationMulti-root Workspaces.

You can customize Serial Port Monitor usingMonitor options in 'platformio.ini' (Project Configuration File):

Example:

Debugging in VSCode works in combination with Debugging. You shouldhave PlatformIO Account to work with it.

VSCode has a separate activity view named 'Debug' (accessed by the bug icon on the left toolbar).Debugging extends it with more advanced debugging instruments and features:

  • Local, Global, and Static Variable Explorer
  • Conditional Breakpoints
  • Expressions and Watchpoints
  • Generic Registers
  • Peripheral Registers
  • Memory Viewer
  • Disassembly
  • Multi-thread support
  • A hot restart of an active debugging session.

There are two pre-configured debugging configurations:

Solis 1 0 4 – Codes Editors Integrator Panel Installation

PIO Debug:

Default configuration. PlatformIO runs the Pre-Debug task and buildsthe project using Debug Configuration. Also, itchecks for project changes.

PIO Debug (skip Pre-Debug):

PlatformIO skips the Pre-Debug stage and DOES NOT build or check the project for changes.If you do changes in project source files, they will not be reflected indebug sessions until you switch back to the 'PIO Debug' configuration ormanually run the 'Pre-Debug' task.

This configuration is very useful for quick debug session. It is super fastby skipping several checks, letting you control project changes manually.

Note

Please note that Debugging will use the first declared buildenvironment in 'platformio.ini' (Project Configuration File) if the default_envsoption is not specified.

Currently, VSCode does not provide an UI or API to change the variable format. See therelated VSCode Issue #28025.

A temporary solution is to set the default numerical base in which thedebugger displays numeric output in the Debug Console. (The DebugConsole is visible during active debugging sessions). For example, toshow variables in hexadecimal format, copy the code below and paste itinto 'Debug Console':

Possible values, listed in decimal base, are: 8, 10, 16.

Please read GDB: Setting Watchpointsfirst.

Currently, VSCode does not provide an API to change the value format of watchpoints.You can manually cast watchpoint expressions to display the value as specific pointer types:

  • $pc, default decimal integer format
  • *0x10012000, an address, default decimal integer format
  • (void*)$pc, $pc register, hexadecimal format
  • *(void**)0x10012000, an address, hexadecimal format

Please refer to PlatformIO Core Install Shell Commands.

There are two options how to configure a proxy server:

  1. Declare the HTTP_PROXY and HTTPS_PROXY system environment variables(for example HTTP_PROXY=http://user:pass@10.10.1.10:3128/, etc.)
  2. Open VSCode Settingsand search for 'Proxy'. Please set 'Http: Proxy' and disable'Http: Proxy Strict SSL'.
  • ctrl+alt+b / cmd-shift-b / ctrl-shift-b Build Project
  • cmd-shift-d / ctrl-shift-d Debug project
  • ctrl+alt+u Upload Firmware
  • ctrl+alt+s Open Serial Port Monitor

You can override existing key bindings or add a new in VSCode. See officialdocumentation Key Bindings for Visual Studio Code.

If true, activate the platformioide extension only when aPlatformIO-based project (that has a 'platformio.ini' (Project Configuration File)) is open in theworkspace. Icon library app. The default value is false.

If true, automatically close pio device monitor before uploading/testing.The default value is true.

If true, automatically rebuild the C/C++ Project Index when 'platformio.ini' (Project Configuration File)is changed or when new libraries are installed. The default value is true.

The build task (label) that is launched by the 'Build' button in thePlatformIO Toolbar and Key Bindings. The default is PlatformIO:Build.

Solis 1 0 4 – Codes Editors Integrator Panels

You can create custom Custom Tasks and assign one of them to platformio-ide.buildTask.

Automatically preload ALL project environment tasks. The default value is false.

Custom PATH for the platformio command. Paste here the result of echo$PATH(Unix) / echo%PATH% (Windows) command by typing into your system terminalif you prefer to use a custom version of PlatformIO Core (CLI). The default value is null, meaning PlatformIO looks for the platformio command in the system path.

Disable the PlatformIO toolbar. The default value is false.

Integrator

This tutorial introduces you to the basics of PlatformIO IDE workflow and showsyou a creation process of a simple 'Blink' example. After finishing you willhave a general understanding of how to work with projects in the IDE.

  1. Click on 'PlatformIO Home' button on the bottom PlatformIO Toolbar
  1. Click on 'New Project', select a board and create new PlatformIO Project
  1. Open main.cpp file form src folder and replace its contents withthe next:

Warning

The code below works only in pair with Arduino-based boards. Pleasefollow to PlatformIO Project Examples repository for other pre-configured projects.

  1. Build your project with ctrl+alt+b hotkey (see all Key Bindings in'User Guide' section below) or using 'Build' button on the PlatformIO Toolbar

Further for reading:

  • Tutorials and Examples (step-by-step tutorials with debugging and unit testing)
  • Learn more about PlatformIO Toolbar and other commands (Upload,Clean, Serial Monitor) below.

Happy coding with PlatformIO!

PlatformIO IDE Toolbar is located in VSCode Status Bar (left corner)and contains quick access buttons for the popular commands.Each button contains hint (delay mouse on it).

  1. PlatformIO: Build
  2. PlatformIO: Upload
  3. PlatformIO: Clean
  4. Project environment switcher (if more than one environment is available).See Section [env] of 'platformio.ini' (Project Configuration File) .

There are 2 ways how to access PlatformIO Core (CLI):

  1. 'Terminal' icon on the PlatformIO Toolbar
  2. Left Activity Bar > PlatformIO (ant icon) > Quick Access > Miscellaneous > PlatformIO Core CLI

PlatformIO provides access to 'Project Task' where you can controlthe build process of the environments declared in 'platformio.ini' (Project Configuration File).Project Task Explorer is located in the VSCode Activity Bar under the brandedPlatformIO icon. You can also access it via 'VSCode Menu > Open View… >PlatformIO'.

Hint

Please note that you can drag/move 'Project Task' into to the another view withinVSCode, such as 'Explorer'.

PlatformIO IDE provides built-in tasks through the menu Terminal>RunTask.. (Build,Upload, Clean, Monitor, etc) and custom tasks per 'platformio.ini' (Project Configuration File) environment([env:***]). The default behavior is to use Terminal Panels for presentation,one panel dedicated to each unique task.

The PlatformIO IDE provides its own Problems Matcher named $platformio.You can use it later if you decide to change base task settings.

You can override existing tasks with your own presentation options. For example,let's configure PlatformIO Task Runner to use a NEW Terminal panel for each 'Build'command:

  1. The menu item Terminal>RunTask.. opens up a list of VSCodetasks for PlatformIO. In the line PlatformIO:Build, press thegear icon on the far right side of the list. This creates or opensthe file .vscode/tasks.json with some template code.
  2. Replace the template in tasks.json with this code

See more options in the official VSCode documentation.

Custom tasks can be added to tasks.json file located in the .vscode folderin the root of project. Please read the official documentation Tasks in VSCode.

This simple example demonstrates a custom monitor task which echoes input locally.There are a lot of other commands, please read more about PlatformIO Core (CLI) andits commands (CLI Guide).

If the platformio executable file is not in your system environment 'PATH', youcan provide the full path to the binary folder using the options field for the task. For example,if the platformio binary is located in the home folder '~/.platformio/penv/bin':

You can work with multiple project folders in Visual Studio Code withmulti-root workspaces. This can be very helpful when you are working onseveral related projects at the same time. Read more in the documentationMulti-root Workspaces.

You can customize Serial Port Monitor usingMonitor options in 'platformio.ini' (Project Configuration File):

Example:

Debugging in VSCode works in combination with Debugging. You shouldhave PlatformIO Account to work with it.

VSCode has a separate activity view named 'Debug' (accessed by the bug icon on the left toolbar).Debugging extends it with more advanced debugging instruments and features:

  • Local, Global, and Static Variable Explorer
  • Conditional Breakpoints
  • Expressions and Watchpoints
  • Generic Registers
  • Peripheral Registers
  • Memory Viewer
  • Disassembly
  • Multi-thread support
  • A hot restart of an active debugging session.

There are two pre-configured debugging configurations:

Solis 1 0 4 – Codes Editors Integrator Panel Installation

PIO Debug:

Default configuration. PlatformIO runs the Pre-Debug task and buildsthe project using Debug Configuration. Also, itchecks for project changes.

PIO Debug (skip Pre-Debug):

PlatformIO skips the Pre-Debug stage and DOES NOT build or check the project for changes.If you do changes in project source files, they will not be reflected indebug sessions until you switch back to the 'PIO Debug' configuration ormanually run the 'Pre-Debug' task.

This configuration is very useful for quick debug session. It is super fastby skipping several checks, letting you control project changes manually.

Note

Please note that Debugging will use the first declared buildenvironment in 'platformio.ini' (Project Configuration File) if the default_envsoption is not specified.

Currently, VSCode does not provide an UI or API to change the variable format. See therelated VSCode Issue #28025.

A temporary solution is to set the default numerical base in which thedebugger displays numeric output in the Debug Console. (The DebugConsole is visible during active debugging sessions). For example, toshow variables in hexadecimal format, copy the code below and paste itinto 'Debug Console':

Possible values, listed in decimal base, are: 8, 10, 16.

Please read GDB: Setting Watchpointsfirst.

Currently, VSCode does not provide an API to change the value format of watchpoints.You can manually cast watchpoint expressions to display the value as specific pointer types:

  • $pc, default decimal integer format
  • *0x10012000, an address, default decimal integer format
  • (void*)$pc, $pc register, hexadecimal format
  • *(void**)0x10012000, an address, hexadecimal format

Please refer to PlatformIO Core Install Shell Commands.

There are two options how to configure a proxy server:

  1. Declare the HTTP_PROXY and HTTPS_PROXY system environment variables(for example HTTP_PROXY=http://user:pass@10.10.1.10:3128/, etc.)
  2. Open VSCode Settingsand search for 'Proxy'. Please set 'Http: Proxy' and disable'Http: Proxy Strict SSL'.
  • ctrl+alt+b / cmd-shift-b / ctrl-shift-b Build Project
  • cmd-shift-d / ctrl-shift-d Debug project
  • ctrl+alt+u Upload Firmware
  • ctrl+alt+s Open Serial Port Monitor

You can override existing key bindings or add a new in VSCode. See officialdocumentation Key Bindings for Visual Studio Code.

If true, activate the platformioide extension only when aPlatformIO-based project (that has a 'platformio.ini' (Project Configuration File)) is open in theworkspace. Icon library app. The default value is false.

If true, automatically close pio device monitor before uploading/testing.The default value is true.

If true, automatically rebuild the C/C++ Project Index when 'platformio.ini' (Project Configuration File)is changed or when new libraries are installed. The default value is true.

The build task (label) that is launched by the 'Build' button in thePlatformIO Toolbar and Key Bindings. The default is PlatformIO:Build.

Solis 1 0 4 – Codes Editors Integrator Panels

You can create custom Custom Tasks and assign one of them to platformio-ide.buildTask.

Automatically preload ALL project environment tasks. The default value is false.

Custom PATH for the platformio command. Paste here the result of echo$PATH(Unix) / echo%PATH% (Windows) command by typing into your system terminalif you prefer to use a custom version of PlatformIO Core (CLI). The default value is null, meaning PlatformIO looks for the platformio command in the system path.

Disable the PlatformIO toolbar. The default value is false.

If true, the Upload (platformio-ide.upload) command is changed touse the 'Upload and Monitor' task. The default value is false.

Solis 1 0 4 – Codes Editors Integrator Panel Code

Configure the time in milliseconds before reopening the Serial Port Monitor.The default value is 0, which means to reopen instantly.

Use a portable Python 3 Interpreter if available. The default value is true.

If true, use the built-in PlatformIO Core (CLI). The default value is true.

If true, use the development version of PlatformIO Core (CLI). The defaultvalue is false.

Solis 1 0 4 – Codes Editors Integrator Panel Download

Disable showing PlatformIO Home at startup. The default value is false.

PlatformIO Home server HTTP port. The default value 0 automatically assigns a free port inthe range [8010.8100]).

Custom base URL of the Python Package Index (default https://pypi.org/simple).

This is a known bug in VSCode Terminalissue #61.

A temporary solution is to install packages using a system terminal (not VSCode Terminal).Please use 'Solution 3: Run from Terminal' in FAQ > Package Manager >[Error 5] Access is denied.Afterwards, go back to using the VSCode Terminal.





broken image