Go Down

Topic: Dynamically Arduino from Python3 (Read 184 times) previous topic - next topic


Jun 11, 2019, 10:46 am Last Edit: Jun 11, 2019, 10:48 am by jsmith2021

On the topic of dynamic code generation, I am working on an Arduino Class Generator which automatically creates a class body (.cpp), header (.h),  keywords (.txt), and example file (.ino) from an Arduino Sketch

The motivation for my project is that I found myself writing sketches to create the functionality I wanted, and then manually converting that sketch into a library for object orientated programming and sharing.

This process consists of parsing the sketch into the necessary information to make a library, like comments, variables, methods, and other included libraries

The included files demonstrate the project. Morse.ino is the original sketch, and MorseParsed is the intermediary file used to generate Morce.cpp, Morse.h, MorseExampleFile.ino, and MorseKeywords.txt

The github for the project is here
and I made a pull request to include it in the github IDE, the ClassGeneratorInIde picture shows what using the IDE would like like if my change is accepted

I also posted this on the forum here

Does anyone reading have thoughts on this project?
Jacob Smith

Go Up