-
Notifications
You must be signed in to change notification settings - Fork 3
Translator improvements
When I started to implement my own functions I needed to use some global variables to be able implement intended functionality. Many libraries for arduino are implemented as classes so to use them you need create object. First I was thinking that I would be able to create VI which will create this object but after thinking I didn't find how to that so instead I modified slightly Translator.vi and put there this:
If I want to declare global variable it's including empty.h file, which is really empty header file and after that put my code. In this way I can put into beginning of generate sketch my own code. I write here into beginning, because list of include files is processed by Arduino Compiler for LabVIEW and is put at beginning of sketch.