Skip to content

Commit

Permalink
basic,logic
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhiyong0410 committed Nov 19, 2020
1 parent 17403ab commit fc71e11
Show file tree
Hide file tree
Showing 83 changed files with 1,011 additions and 3 deletions.
Binary file modified build/doctrees/environment.pickle
Binary file not shown.
Binary file added build/doctrees/reference-for-block/basic.doctree
Binary file not shown.
Binary file added build/doctrees/reference-for-block/block.doctree
Binary file not shown.
Binary file added build/doctrees/reference-for-block/logic.doctree
Binary file not shown.
Binary file modified build/doctrees/tutorial.doctree
Binary file not shown.
Binary file added build/html/_images/Forever.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/Start.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/and.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/andexample.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/delay.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/dengdengyu.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/false.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/ifdo.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/not.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/notexample.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/null.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/off.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/on.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/or.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/print.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/test.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/testexample.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/html/_images/true.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions build/html/_sources/reference-for-block/basic.md.txt
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
***
13 changes: 13 additions & 0 deletions build/html/_sources/reference-for-block/block.rst.txt
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
59 changes: 59 additions & 0 deletions build/html/_sources/reference-for-block/logic.md.txt
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
```
***
3 changes: 2 additions & 1 deletion build/html/_sources/tutorial.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ Tutorial
:maxdepth: 1

get-started-with-ezblock2.0/function_Introduction
reference-for-python/ezblock
reference-for-python/ezblock
reference-for-block/block
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../reference-for-python/ezblock.html">Reference for Python</a></li>
<li class="toctree-l2"><a class="reference internal" href="../reference-for-block/block.html">Reference for Block</a></li>
</ul>
</li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ <h1>Ezblock Technical documentation<a class="headerlink" href="#ezblock-technica
<li class="toctree-l1"><a class="reference internal" href="tutorial.html">Tutorial</a><ul>
<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"><a class="reference internal" href="reference-for-block/block.html">Reference for Block</a></li>
</ul>
</li>
</ul>
Expand Down
Binary file modified build/html/objects.inv
Binary file not shown.
252 changes: 252 additions & 0 deletions build/html/reference-for-block/basic.html
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 &mdash; 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> &raquo;</li>

<li><a href="../tutorial.html">Tutorial</a> &raquo;</li>

<li><a href="block.html">Reference for Block</a> &raquo;</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">&quot;abc&quot;</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">&quot;100&quot;</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>
&copy; 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>

0 comments on commit fc71e11

Please sign in to comment.