Sketch Name as Variable
hello
does know if there way insert sketch name variable @ time of compiling?
i working on 10 matching projects in different locations, , hoping way put sketch name (which includes our revision number) char array, upon startup name sketch programmed on arduino printed lcd.
thanks
does know if there way insert sketch name variable @ time of compiling?
i working on 10 matching projects in different locations, , hoping way put sketch name (which includes our revision number) char array, upon startup name sketch programmed on arduino printed lcd.
thanks
i don't know. did try __name__?
edit:
almost there. xd __file__ constant:
http://www.lemoda.net/c/line-file-func/
edit:
almost there. xd __file__ constant:
http://www.lemoda.net/c/line-file-func/
Arduino Forum > Using Arduino > Programming Questions > Sketch Name as Variable
arduino
Comments
Post a Comment