-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17403ab
commit fc71e11
Showing
83 changed files
with
1,011 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# basic | ||
|
||
|
||
* ![a](./img/basic/Start.jpg) | ||
- **effect:** The block placed in Start will only be executed once, which is suitable for some initialization operations in the block | ||
*** | ||
|
||
|
||
* ![a](./img/basic/Forever.jpg) | ||
- **effect:** The content in the block will loop indefinitely | ||
*** | ||
|
||
|
||
|
||
* ![a](./img/basic/print.jpg) | ||
- **effect:** The corresponding content can be output to the console, which can be used for debugging | ||
- **parameter:** `"abc"` is what you want to output, it can be any type | ||
*** | ||
|
||
* ![a](./img/basic/delay.jpg) | ||
- **effect:** Delay a certain time,Set duration for operation | ||
- **parameter:** `"100"` Can only be a number type, in milliseconds | ||
*** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Reference for Block | ||
==================== | ||
|
||
This article introduces the use and annotation of blocks in block programming | ||
|
||
Product | ||
^^^^^^^ | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
basic | ||
logic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# logic | ||
|
||
* ![asef](./img/logic/ifdo.jpg) | ||
- **effect:** Used to capture changes in variables to respond When the condition is met, that is, when the parameter value is true, the content of the block will be executed | ||
|
||
*** | ||
|
||
* ![a](./img/logic/dengdengyu.jpg) | ||
- **effect:** Compare the left and right parameters, return a Boolean value, return true if the condition is met, otherwise return false | ||
- **parameter:** The value type on the left and right sides must be the same, for example, both are numbers or both are characters | ||
|
||
*** | ||
|
||
* ![a](./img/logic/and.jpg) | ||
- **effect:** It will return a Boolean value, and the parameters on both sides must also be Boolean values. __If both sides are true__, return __`true`__. __If either party is false or both parties are false__, return __`false`__. | ||
* ![a](./img/logic/or.jpg) | ||
- **effect:** Returns a boolean value, the parameters on both sides must also be boolean values, __as long as either of them is `true`__, it will return `true`, __and only when both are `fasle`__ will it return `false` | ||
![a](./img/logic/andexample.jpg) | ||
computational results: | ||
``` | ||
true | ||
false | ||
``` | ||
|
||
*** | ||
|
||
* ![a](./img/logic/not.jpg) | ||
- **effect:** Splicing before the block whose return value is Boolean will get the __opposite Boolean value__ | ||
![a](./img/logic/notexample.jpg) | ||
computational results: | ||
``` | ||
false | ||
``` | ||
*** | ||
|
||
* ![a](./img/logic/true.jpg) | ||
- **effect:** That is, the boolean value `true`. | ||
* ![a](./img/logic/false.jpg) | ||
- **effect:** That is, the boolean value `false`. | ||
*** | ||
|
||
* ![a](./img/logic/null.jpg) | ||
- **effect:** Generally used to compare or assign values to variables | ||
*** | ||
|
||
* ![a](./img/logic/on.jpg) | ||
* ![a](./img/logic/off.jpg) | ||
- **effect:** In fact, it has the same function as the `true` block and the `false` block. They are all boolean values, but this block is more suitable for switch state assignment. | ||
*** | ||
|
||
* ![a](./img/logic/test.jpg) | ||
- **effect:** This is a ternary expression, if the return value of `test` is `true` then the block after `if true` will be executed, and vice versa | ||
- **example:** | ||
![a](./img/logic/testexample.jpg) | ||
computational results: | ||
``` | ||
equality | ||
``` | ||
*** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,252 @@ | ||
|
||
|
||
<!DOCTYPE html> | ||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> | ||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> | ||
<head> | ||
<meta charset="utf-8"> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<title>basic — Ezblock documentation</title> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<script type="text/javascript" src="../_static/js/modernizr.min.js"></script> | ||
|
||
|
||
<script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> | ||
<script type="text/javascript" src="../_static/jquery.js"></script> | ||
<script type="text/javascript" src="../_static/underscore.js"></script> | ||
<script type="text/javascript" src="../_static/doctools.js"></script> | ||
<script type="text/javascript" src="../_static/language_data.js"></script> | ||
|
||
<script type="text/javascript" src="../_static/js/theme.js"></script> | ||
|
||
|
||
|
||
|
||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> | ||
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> | ||
<link rel="index" title="Index" href="../genindex.html" /> | ||
<link rel="search" title="Search" href="../search.html" /> | ||
<link rel="next" title="logic" href="logic.html" /> | ||
<link rel="prev" title="Reference for Block" href="block.html" /> | ||
</head> | ||
|
||
<body class="wy-body-for-nav"> | ||
|
||
|
||
<div class="wy-grid-for-nav"> | ||
|
||
<nav data-toggle="wy-nav-shift" class="wy-nav-side"> | ||
<div class="wy-side-scroll"> | ||
<div class="wy-side-nav-search" > | ||
|
||
|
||
|
||
<a href="../index.html" class="icon icon-home"> Ezblock | ||
|
||
|
||
|
||
</a> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div role="search"> | ||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> | ||
<input type="text" name="q" placeholder="Search docs" /> | ||
<input type="hidden" name="check_keywords" value="yes" /> | ||
<input type="hidden" name="area" value="default" /> | ||
</form> | ||
</div> | ||
|
||
|
||
</div> | ||
|
||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> | ||
|
||
|
||
|
||
|
||
|
||
|
||
<ul class="current"> | ||
<li class="toctree-l1 current"><a class="reference internal" href="../tutorial.html">Tutorial</a><ul class="current"> | ||
<li class="toctree-l2"><a class="reference internal" href="../get-started-with-ezblock2.0/function_Introduction.html">function Introduction</a></li> | ||
<li class="toctree-l2"><a class="reference internal" href="../reference-for-python/ezblock.html">Reference for Python</a></li> | ||
<li class="toctree-l2 current"><a class="reference internal" href="block.html">Reference for Block</a><ul class="current"> | ||
<li class="toctree-l3 current"><a class="reference internal" href="block.html#product">Product</a><ul class="current"> | ||
<li class="toctree-l4 current"><a class="current reference internal" href="#">basic</a></li> | ||
<li class="toctree-l4"><a class="reference internal" href="logic.html">logic</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
|
||
|
||
|
||
</div> | ||
</div> | ||
</nav> | ||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> | ||
|
||
|
||
<nav class="wy-nav-top" aria-label="top navigation"> | ||
|
||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i> | ||
<a href="../index.html">Ezblock</a> | ||
|
||
</nav> | ||
|
||
|
||
<div class="wy-nav-content"> | ||
|
||
<div class="rst-content"> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div role="navigation" aria-label="breadcrumbs navigation"> | ||
|
||
<ul class="wy-breadcrumbs"> | ||
|
||
<li><a href="../index.html">Docs</a> »</li> | ||
|
||
<li><a href="../tutorial.html">Tutorial</a> »</li> | ||
|
||
<li><a href="block.html">Reference for Block</a> »</li> | ||
|
||
<li>basic</li> | ||
|
||
|
||
<li class="wy-breadcrumbs-aside"> | ||
|
||
|
||
<a href="../_sources/reference-for-block/basic.md.txt" rel="nofollow"> View page source</a> | ||
|
||
|
||
</li> | ||
|
||
</ul> | ||
|
||
|
||
<hr/> | ||
</div> | ||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
<div itemprop="articleBody"> | ||
|
||
<div class="section" id="basic"> | ||
<h1>basic<a class="headerlink" href="#basic" title="Permalink to this headline">¶</a></h1> | ||
<ul class="simple"> | ||
<li><p><img alt="a" src="../_images/Start.jpg" /></p> | ||
<ul> | ||
<li><p><strong>effect:</strong> The block placed in Start will only be executed once, which is suitable for some initialization operations in the block</p></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<hr class="docutils" /> | ||
<ul class="simple"> | ||
<li><p><img alt="a" src="../_images/Forever.jpg" /></p> | ||
<ul> | ||
<li><p><strong>effect:</strong> The content in the block will loop indefinitely</p></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<hr class="docutils" /> | ||
<ul class="simple"> | ||
<li><p><img alt="a" src="../_images/print.jpg" /></p> | ||
<ul> | ||
<li><p><strong>effect:</strong> The corresponding content can be output to the console, which can be used for debugging</p></li> | ||
<li><p><strong>parameter:</strong> <code class="docutils literal notranslate"><span class="pre">"abc"</span></code> is what you want to output, it can be any type</p></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<hr class="docutils" /> | ||
<ul class="simple"> | ||
<li><p><img alt="a" src="../_images/delay.jpg" /></p> | ||
<ul> | ||
<li><p><strong>effect:</strong> Delay a certain time,Set duration for operation</p></li> | ||
<li><p><strong>parameter:</strong> <code class="docutils literal notranslate"><span class="pre">"100"</span></code> Can only be a number type, in milliseconds</p></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<hr class="docutils" /> | ||
</div> | ||
|
||
|
||
</div> | ||
|
||
</div> | ||
<footer> | ||
|
||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> | ||
|
||
<a href="logic.html" class="btn btn-neutral float-right" title="logic" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a> | ||
|
||
|
||
<a href="block.html" class="btn btn-neutral float-left" title="Reference for Block" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a> | ||
|
||
</div> | ||
|
||
|
||
<hr/> | ||
|
||
<div role="contentinfo"> | ||
<p> | ||
© Copyright 2020, sunfounder | ||
|
||
</p> | ||
</div> | ||
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. | ||
|
||
</footer> | ||
|
||
</div> | ||
</div> | ||
|
||
</section> | ||
|
||
</div> | ||
|
||
|
||
|
||
<script type="text/javascript"> | ||
jQuery(function () { | ||
SphinxRtdTheme.Navigation.enable(true); | ||
}); | ||
</script> | ||
|
||
|
||
|
||
|
||
|
||
|
||
</body> | ||
</html> |
Oops, something went wrong.