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
40470d8d
Commit
40470d8d
authored
Mar 02, 2015
by
carlosperate
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/carlosperate/ardublockly
parents
a3b79e47
82def68a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
blocks/arduino/time.js
blocks/arduino/time.js
+16
-0
No files found.
blocks/arduino/time.js
View file @
40470d8d
...
@@ -116,3 +116,19 @@ Blockly.Blocks['infinite_loop'] = {
...
@@ -116,3 +116,19 @@ Blockly.Blocks['infinite_loop'] = {
this
.
setTooltip
(
'
Wait indefinitely, stopping the program.
'
);
this
.
setTooltip
(
'
Wait indefinitely, stopping the program.
'
);
}
}
};
};
Blockly
.
Blocks
[
'
infinite_loop
'
]
=
{
/**
* Waits forever, end of program.
* @this Blockly.Block
*/
init
:
function
()
{
this
.
setHelpUrl
(
''
);
this
.
setColour
(
Blockly
.
Blocks
.
Arduino
.
time
.
HUE
);
this
.
appendDummyInput
()
.
appendField
(
"
wait forever (end program)
"
);
this
.
setInputsInline
(
true
);
this
.
setPreviousStatement
(
true
);
this
.
setTooltip
(
'
Wait indefinitely, stopping the program.
'
);
}
};
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