This Python 3 script will generate an Arduino Keyword File from a header file. All that's needed is the following library CppHeaderParser. Run the script from the command line following the instructions below will create a keywords file like the one pictured.
- CppHeaderParser : pip install CppHeaderParser
To generate your "keywords.txt" file, give the path of the Arduino Library after the call to the keywords python script. There are three methods to do this:
- Method One
This method requires that the Arduino Library is in the default Github repo installation location: "C:\Users\YourUsername\Documents\Github\Arduino Library". Give the name of the Arduino Library Folder after the call to the script as shown below.
- Method Two
The next method is to pull the script into Arduino Library itself (not source ("src") file) and call it without any arguments.
- Method Three
Give the entire path to the Arduino Library:
After running the script you'll get a readout that looks like the following: