Hello everyone,
I have installed VSC and PIO with full online access and admin privileges as a teacher and it is working fine (using Arduino).
Now I want to give other users (students) access to PIO (Arduino-Fkt) on the same PC (Win10) without WEB-access. It don’t works. Is there a way to share the fuctionality for all offline users so that they can work without Internet access (using a common folder/structure, container or something like that), in a common userprofile.
Given that you’ve installed the PlatformIO core to one specific directory that every user can access and set the PLATFORMIO_CORE_DIR environment variable for every user, pointing to that directory, it should work.
The script should install the PlatformIO core, packages and platforms to `C:\PIO now.
Add shell commands via addition to the PATH global environment variable.
Predownload the packages for the envrionment you need. For example, you’re working with an Arduino Uno (Atmel AVR platform), you can e.g. pio pkg install -g -p atmelavr to install that platform. This should fill up the C:\PIO\packages and C:\PIO\platforms folders.
Install the PlatformIO VSCode extension in VSCode
Create a new project for your target microcontroller and use the “build” and “upload” project tasks to trigger the installation of the toolchain and uploader tools.
Download any needed libraries. This can happen e.g. globally (pio pkg install -g -l <library>)