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-esp32
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-esp32
Commits
3e87abc6
Commit
3e87abc6
authored
Nov 28, 2017
by
me-no-dev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/espressif/arduino-esp32
parents
62fa954f
3198f25c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
docs/platformio.md
docs/platformio.md
+1
-1
libraries/SPI/src/SPI.cpp
libraries/SPI/src/SPI.cpp
+11
-4
libraries/SPI/src/SPI.h
libraries/SPI/src/SPI.h
+1
-1
No files found.
docs/platformio.md
View file @
3e87abc6
...
...
@@ -5,7 +5,7 @@ Installation instructions for using PlatformIO
-
[
What is PlatformIO?
](
http://docs.platformio.org/page/what-is-platformio.html
)
-
[
PlatformIO IDE
](
http://platformio.org/platformio-ide
)
-
Quick Start with
[
PlatformIO IDE
](
http://docs.platformio.org/page/ide/atom.html#quick-start
)
or
[
PlatformIO Core
](
http://docs.platformio.org/page/core.html
)
-
[
PlatformIO Core (CLI)
](
http://docs.platformio.org/page/core.html
)
-
[
Integration with Cloud and Standalone IDEs
](
http://docs.platformio.org/page/ide.html
)
-
Cloud9, Codeanywehre, Eclipse Che (Codenvy), Atom, CLion, Eclipse, Emacs, NetBeans, Qt Creator, Sublime Text, VIM and Visual Studio
-
[
Project Examples
](
https://github.com/platformio/platform-espressif32/tree/develop/examples
)
...
...
libraries/SPI/src/SPI.cpp
View file @
3e87abc6
...
...
@@ -49,10 +49,17 @@ void SPIClass::begin(int8_t sck, int8_t miso, int8_t mosi, int8_t ss)
return
;
}
_sck
=
sck
;
_miso
=
miso
;
_mosi
=
mosi
;
_ss
=
ss
;
if
(
sck
==
-
1
&&
miso
==
-
1
&&
mosi
==
-
1
&&
ss
==
-
1
)
{
_sck
=
(
_spi_num
==
VSPI
)
?
SCK
:
14
;
_miso
=
(
_spi_num
==
VSPI
)
?
MISO
:
12
;
_mosi
=
(
_spi_num
==
VSPI
)
?
MOSI
:
13
;
_ss
=
(
_spi_num
==
VSPI
)
?
SS
:
15
;
}
else
{
_sck
=
sck
;
_miso
=
miso
;
_mosi
=
mosi
;
_ss
=
ss
;
}
spiAttachSCK
(
_spi
,
_sck
);
spiAttachMISO
(
_spi
,
_miso
);
...
...
libraries/SPI/src/SPI.h
View file @
3e87abc6
...
...
@@ -52,7 +52,7 @@ private:
public:
SPIClass
(
uint8_t
spi_bus
=
HSPI
);
void
begin
(
int8_t
sck
=
SCK
,
int8_t
miso
=
MISO
,
int8_t
mosi
=
MOSI
,
int8_t
ss
=-
1
);
void
begin
(
int8_t
sck
=
-
1
,
int8_t
miso
=-
1
,
int8_t
mosi
=-
1
,
int8_t
ss
=-
1
);
void
end
();
void
setHwCs
(
bool
use
);
...
...
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