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 @@ ...@@ -8,16 +8,6 @@
******************************************************************************/ ******************************************************************************/
#include "Arduino.h" #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 * TYPEDEF
...@@ -37,12 +27,10 @@ enum NinaPin { ...@@ -37,12 +27,10 @@ enum NinaPin {
* FUNCTION DECLARATION * FUNCTION DECLARATION
******************************************************************************/ ******************************************************************************/
void NINA_ATTRIBUTE pinMode (NinaPin pin, PinMode mode); void pinMode (NinaPin pin, PinMode mode);
PinStatus NINA_ATTRIBUTE digitalRead (NinaPin pin); PinStatus digitalRead (NinaPin pin);
void NINA_ATTRIBUTE digitalWrite(NinaPin pin, PinStatus value); void digitalWrite(NinaPin pin, PinStatus value);
int NINA_ATTRIBUTE analogRead (NinaPin pin); int analogRead (NinaPin pin);
void NINA_ATTRIBUTE analogWrite (NinaPin pin, int value); void analogWrite (NinaPin pin, int value);
#undef NINA_ATTRIBUTE
#endif /* _NINA_PINS_ */ #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