0

QTPy Missing Variant.h in VSCode/PlatformIO
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

QTPy Missing Variant.h in VSCode/PlatformIO

by bselen1152 on Thu Jan 14, 2021 5:48 pm

I'm not sure what's happening, but I'm trying to use my QTPy with VSCode and PlatformIO. Every time I build I receive an error that I'm missing Variant.h.

I've searched the entire PlatformIO packages and platforms folders and I can't seem to find a Variant.h or .cpp for the the QTPym but I can see them for all of the other Adafruit microcontrollers.

I am able to build and upload code within the Arduino IDE. Please let me know if you need any additional information. Thanks.

bselen1152
 
Posts: 2
Joined: Thu Jan 14, 2021 5:41 pm

Re: QTPy Missing Variant.h in VSCode/PlatformIO

by mikeysklar on Fri Jan 15, 2021 8:08 pm

QTPy is new enough that it could be a VSCode extension version issue. Are you running the latest versions of the Python or Arduino extensions?

https://marketplace.visualstudio.com/it ... og-scottha

https://marketplace.visualstudio.com/it ... og-scottha

mikeysklar
 
Posts: 3415
Joined: Mon Aug 01, 2016 8:10 pm

Re: QTPy Missing Variant.h in VSCode/PlatformIO

by bselen1152 on Sat Jan 16, 2021 2:42 pm

I uninstalled/reinstalled the extensions you linked. I'm using PlatformIO, programming using C++. I installed the Adafruit board extension and it shows the Adafruit QTPY M0 in the board list. I'll try playing with programming it using another generic M0 board and see if I can get it to work that way.

bselen1152
 
Posts: 2
Joined: Thu Jan 14, 2021 5:41 pm

Please be positive and constructive with your questions and comments.