Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Does vMicro/Board selection #define a variable? (Read 541 times)
Duggle
Junior Member
**
Offline


Posts: 10
Joined: Jul 5th, 2021
Does vMicro/Board selection #define a variable?
Jul 25th, 2021 at 11:27am
Print Post  
I would like a compile code lines conditionally upon the Board that is in use.
Does the vMicro/Board have a variable than can be used for this?
thanks
  
Back to top
 
IP Logged
 
Duggle
Junior Member
**
Offline


Posts: 10
Joined: Jul 5th, 2021
Re: Does vMicro/Board selection #define a variable?
Reply #1 - Jul 25th, 2021 at 11:46am
Print Post  
I think I have an answer:
#define __AVR_ATmega328P__
applies to Arduino Uno
and
#define __AVR_ATtiny45__
applies to ATtiny45, etc.
i
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint