Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
9408b7e2
Unverified
Commit
9408b7e2
authored
Jan 09, 2022
by
Khoi Hoang
Committed by
GitHub
Jan 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix WiFiNINA issue for Arduino Nano Connect (#403)
Fixes #373
parent
12f3505e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
+5
-17
variants/arduino_nano_connect/nina_pins.h
variants/arduino_nano_connect/nina_pins.h
+5
-17
No files found.
variants/arduino_nano_connect/nina_pins.h
View file @
9408b7e2
...
...
@@ -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_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment