Customizing build and upload buttons

I’ve been using PlatformIO for do basic builds with my Arduino and this has been working well.

Using the build and upload buttons at the bottom which are very handy.
Screenshot from 2022-06-16 20-32-23

I now have a new project I’ve started on to build some Z80 code. I’ve created a tasks.json file which then calls a external bash script to compile the code which I run using ctrl-shift p then build. This works and the code is compiled.

How do I setup the project to use the build (tick) button to do this instead of having to run the task.

Similarly I want to use the upload button to call a avrdude script to upload the code to a microcontroller.

A bit out of my depth here as I don’t even know where to start looking.

The programming of the toolbar is static. It’s mapped to trigger the registered platformio-ide.build etc tasks.

1 Like