Convert Arduino INO to CPP Walkthrough

preview_player
Показать описание
If you are used to C++, and would like to convert an existing Arduino INO project, this is the video for you.... more info and links below....

Moving most code out to CPP/H files allows for better organisation of your code, and keeping the INO allows all serial debugging functions to work as normal as well.

Once you are used to working with standard C++ you can also move into using Shared Projects allowing for Cross Platform coding and Automated testing easily...!

Arduino INO files can be converted easily to standard CPP/H files for your embedded project, in only a few simple steps:
2) Ensure the Arduino.h is included in your H file
3) Merge all INO files into your CPP file(s)
4) Ensure all function prototypes are declared in your H file or before their first usage in your CPP file.
5) Use the code from your CPPs in your INO as normal

Don't forget to Like and Subscribe to stay up to date with new videos and feature updates...

Our Website:

More About INO and CPP Files:

Arduino Specification for INO File Combination:

Adding C++ / C / INO Code to Arduino Project:

#Arduino #VisualStudio
Рекомендации по теме
Комментарии
Автор

how do you handle structures in the header file?
do you have to declare them as extern?

because i always get an error because i include the headerfile in the cpp aswell as the ino

rigdigwus