updating to use new compile flag style

Adding a compile flag for each variant, makes writing libraries much easier. Relevant for Arduino 1.5x+