Fix empty HAS_TIMER macros

This commit is contained in:
Scott Lahteine 2019-03-30 23:04:40 -05:00
parent c9079165ee
commit de0046fc8b
3 changed files with 5 additions and 5 deletions

View file

@ -80,7 +80,7 @@ void FastIO_init(); // Must be called before using fast io macros
#define IS_INPUT(IO)
#define IS_OUTPUT(IO)
#define HAS_TIMER(IO)
#define HAS_TIMER(IO) digitalPinHasPWM(IO)
#define PWM_PIN(P) HAS_TIMER(P)
#define USEABLE_HARDWARE_PWM(P) PWM_PIN(P)

View file

@ -50,9 +50,9 @@
#define IS_INPUT(IO)
#define IS_OUTPUT(IO)
#define HAS_TIMER(IO)
#define HAS_TIMER(IO) true
#define PWM_PIN(P) true
#define PWM_PIN(P) HAS_TIMER(P)
#define USEABLE_HARDWARE_PWM(P) PWM_PIN(P)
// digitalRead/Write wrappers

View file

@ -49,9 +49,9 @@
#define IS_INPUT(IO)
#define IS_OUTPUT(IO)
#define HAS_TIMER(IO)
#define HAS_TIMER(IO) true
#define PWM_PIN(P) true
#define PWM_PIN(P) HAS_TIMER(P)
#define USEABLE_HARDWARE_PWM(P) PWM_PIN(P)
// digitalRead/Write wrappers