Empty #define in .vsarduino.h (Visual Micro)

不羁岁月 提交于 2021-01-28 07:32:31

问题


I'm using Visual Micro to write code for an Arduino (Nano in this case) in Visual Studio 2012. I have a compile error in the generated .vsarduino.h file, an empty #define is being generated and I'm not sure where it is coming from:

.vsarduino.h

#ifndef _VSARDUINO_H_
#define _VSARDUINO_H_
//Board = Arduino Nano w/ ATmega328
#define __AVR_ATmega328P__
#define 
#define _VMDEBUG 1

回答1:


Sorry we missed this question. Hopefully it was answered in the Visual Micro forum.

The vsarduino.h is not included in the compile and is only used for Visual Studio intellisense.

Only real Arduino source is compiled by Visual Micro which means the sketch remains compatible with the Arduino IDE

Thanks



来源:https://stackoverflow.com/questions/20558831/empty-define-in-vsarduino-h-visual-micro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!