PlatformIO Community

PlatformIO Core 6.1 ๐Ÿš€

We are happy to announce the next release of PlatformIO Core with refactored Device Monitor, Pre & Post Actions for library authors, Stringification helpers, and an improved PlatformIO Unit Testing solution for test-driven embedded development. Read more :point_right:

PlatformIO Core 6.1.2 is out!

See PlatformIO 6.1.2 Release Notes for details.

Upgrade

  • PlatformIO IDE: Left Sidebar > PlatformIO (icon) > Quick Access > Upgrade PlatformIO Core
  • Terminal: Please run pio upgrade command in terminal.

Regards,
Your friends at PlatformIO

PlatformIO Core 6.1.3 is out!

  • Fixed a regression bug when opening the device monitor without any filters (issue #4363)

See PlatformIO 6.1.3 Release Notes for details.

Upgrade

  • PlatformIO IDE: Left Sidebar > PlatformIO (icon) > Quick Access > Upgrade PlatformIO Core
  • Terminal: Please run pio upgrade command in terminal.

Regards,
Your friends at PlatformIO

Thanks so much for this great update. While trying out the new Device Monitor features I saw mention of the ANSI library to control the colour of output. I currently use the following monitor filters;

monitor_filters = 
	time
	log2file

Is there a way in PIO/VSC to then view the resulting log file and have it render the ANSI in the log file rather than show it as

15:03:06.102 > e[2Je[He[30mforegrounde[0me[40mbackground
15:03:06.103 > e[0me[31mforegrounde[0me[41mbackground
15:03:06.103 > e[0me[32mforegrounde[0me[42mbackground
15:03:06.104 > e[0me[33mforegrounde[0me[43mbackground
15:03:06.104 > e[0me[34mforegrounde[0me[44mbackground
15:03:06.105 > e[0me[35mforegrounde[0me[45mbackground

Thanks,
PJ

The colour rendering works fine in the Device Monitor, its just the log file Iโ€™m asking about.
Thanks

Yes, you create your own filter and do whatever you want. See example pio device monitor โ€” PlatformIO latest documentation

Also, this small helper can be used to remove ANSI codes

PlatformIO Core 6.1.4 is out!

  • Added support for accepting the original FileNode environment in a โ€œcallbackโ€ function when using Build Middlewares (pull #4380)
  • Improved device port finder when using dual channel UART converter (issue #4367)
  • Improved project dependency resolving when using the pio project init --ide command
  • Upgraded build engine to the SCons 4.4.0 (release notes)
  • Keep custom โ€œunwantedRecommendationsโ€ when generating projects for VSCode (issue #4383)
  • Do not resolve project dependencies for the cleanall target (issue #4344)
  • Warn about calling โ€œenv.BuildSourcesโ€ in a POST-type script (issue #4385)
  • Fixed an issue when escaping macros/defines for IDE integration (issue #4360)
  • Fixed an issue when the โ€œcleanallโ€ target removes dependencies from all working environments (issue #4386)

See PlatformIO 6.1.4 Release Notes for details.

Upgrade

  • PlatformIO IDE: Left Sidebar > PlatformIO (icon) > Quick Access > Upgrade PlatformIO Core
  • Terminal: Please run pio upgrade command in terminal.

Regards,
Your friends at PlatformIO