Unverified Commit 9408b7e2 authored by Khoi Hoang's avatar Khoi Hoang Committed by GitHub

Fix WiFiNINA issue for Arduino Nano Connect (#403)

Fixes #373 
parent 12f3505e
......@@ -8,16 +8,6 @@
******************************************************************************/
#include "Arduino.h"
//#include "WiFiNINA.h"
/******************************************************************************
* PREPROCESSOR-MAGIC
******************************************************************************/
#if __has_include("WiFiNINA.h")
# define NINA_ATTRIBUTE
#else
# define NINA_ATTRIBUTE __attribute__ ((error("Please include WiFiNINA.h to use this pin")))
#endif
/******************************************************************************
* TYPEDEF
......@@ -37,12 +27,10 @@ enum NinaPin {
* FUNCTION DECLARATION
******************************************************************************/
void NINA_ATTRIBUTE pinMode (NinaPin pin, PinMode mode);
PinStatus NINA_ATTRIBUTE digitalRead (NinaPin pin);
void NINA_ATTRIBUTE digitalWrite(NinaPin pin, PinStatus value);
int NINA_ATTRIBUTE analogRead (NinaPin pin);
void NINA_ATTRIBUTE analogWrite (NinaPin pin, int value);
#undef NINA_ATTRIBUTE
void pinMode (NinaPin pin, PinMode mode);
PinStatus digitalRead (NinaPin pin);
void digitalWrite(NinaPin pin, PinStatus value);
int analogRead (NinaPin pin);
void analogWrite (NinaPin pin, int value);
#endif /* _NINA_PINS_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment