Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

C++
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

C++

by rayhayes on Fri May 01, 2020 2:25 am

Is there a way to code in C++ for the Circuit Playground Express family?

Thanks,
Ray

rayhayes
 
Posts: 3
Joined: Fri May 01, 2020 2:24 am

Re: C++

by adafruit_support_bill on Fri May 01, 2020 6:02 am


adafruit_support_bill
 
Posts: 78984
Joined: Sat Feb 07, 2009 10:11 am

Re: C++

by westfw on Sat May 02, 2020 5:07 am

(it is an often-neglected "secret" that "Arduino sketches" are actually C++, with some built-in prototype generation, a customized set of libraries, and some features missing due to the limitations of the microcontroller environment. (dynamic memory allocation is "iffy" on a chip with 2k-32k of RAM, so most of the normal STL is unusable.) But there a real arm-none-eabi-g++ underneath...)

westfw
 
Posts: 1732
Joined: Fri Apr 27, 2007 1:01 pm
Location: SF Bay area

Re: C++

by rayhayes on Sat May 02, 2020 12:41 pm

Thank you. I've installed the Arduino tooling and also the WinAVR tooling that it pointed me to so I'm figuring out how they both work.

Ray

rayhayes
 
Posts: 3
Joined: Fri May 01, 2020 2:24 am

Re: C++

by rayhayes on Sat May 02, 2020 12:41 pm

Thank you. I've installed the Arduino tooling and also the WinAVR tooling that it pointed me to so I'm figuring out how they both work.

Ray

rayhayes
 
Posts: 3
Joined: Fri May 01, 2020 2:24 am

Re: C++

by westfw on Sat May 02, 2020 8:14 pm

the WinAVR tooling


The compilers in WINAVR is pretty hopelessly outdated at this point. Assuming that you don't want to install a full "Atmel Studio" or "MPLABX" IDE, your best bet in the CLI tools:

https://www.microchip.com/mplab/avr-sup ... -compilers

(however, it doesn't include the full set of unix-like cli commands that WINAVR did)

westfw
 
Posts: 1732
Joined: Fri Apr 27, 2007 1:01 pm
Location: SF Bay area

Please be positive and constructive with your questions and comments.