Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ardublockly
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
ardublockly
Commits
71a69a90
Commit
71a69a90
authored
Feb 15, 2016
by
carlosperate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SPI pin warnings.
parent
7d1f2c17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
blockly/generators/arduino/spi.js
blockly/generators/arduino/spi.js
+4
-5
No files found.
blockly/generators/arduino/spi.js
View file @
71a69a90
...
...
@@ -66,11 +66,10 @@ Blockly.Arduino['spi_transfer'] = function(block) {
Blockly
.
Arduino
.
addSetup
(
'
spi_begin
'
,
spiId
+
'
.begin();
'
,
false
);
// Reserve SPI pins MOSI, MISO, and SCK
for
(
var
i
=
0
;
i
<
Blockly
.
Arduino
.
Boards
.
selected
.
spiPins
.
length
;
i
++
)
{
Blockly
.
Arduino
.
reservePin
(
block
,
Blockly
.
Arduino
.
Boards
.
selected
.
spiPins
[
i
][
1
],
Blockly
.
Arduino
.
PinTypes
.
SPI
,
'
SPI
'
+
Blockly
.
Arduino
.
Boards
.
selected
.
spiPins
[
i
][
0
]);
var
spiPins
=
Blockly
.
Arduino
.
Boards
.
selected
.
spiPins
[
spiId
];
for
(
var
i
=
0
;
i
<
spiPins
.
length
;
i
++
)
{
Blockly
.
Arduino
.
reservePin
(
block
,
spiPins
[
i
][
1
],
Blockly
.
Arduino
.
PinTypes
.
SPI
,
'
SPI
'
+
spiPins
[
i
][
0
]);
}
// Configure the Slave Select as a normal output if a pin is used
...
...
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