#if defined => #ifdef / PIN_EXISTS

This commit is contained in:
Scott Lahteine
2017-03-20 15:47:51 -05:00
parent e244399766
commit cd882b88db
9 changed files with 23 additions and 23 deletions

View File

@ -161,7 +161,7 @@ extern volatile uint8_t buttons; //an extended version of the last checked butt
#include <LCD.h>
#include <LiquidCrystal_SR.h>
#define LCD_CLASS LiquidCrystal_SR
#if defined(SR_STROBE_PIN)
#if PIN_EXISTS(SR_STROBE)
LCD_CLASS lcd(SR_DATA_PIN, SR_CLK_PIN, SR_STROBE_PIN);
#else
LCD_CLASS lcd(SR_DATA_PIN, SR_CLK_PIN);