Skip to content

Commit

Permalink
RaspberryPi
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhiyong0410 committed Dec 1, 2020
1 parent aa3dff3 commit 452e41f
Show file tree
Hide file tree
Showing 149 changed files with 2,342 additions and 12 deletions.
Binary file modified build/doctrees/environment.pickle
Binary file not shown.
Binary file modified build/doctrees/index.doctree
Binary file not shown.
Binary file not shown.
Binary file added build/doctrees/reference-for-block/adc.doctree
Binary file not shown.
Binary file modified build/doctrees/reference-for-block/basic.doctree
Binary file not shown.
Binary file modified build/doctrees/reference-for-block/block.doctree
Binary file not shown.
Binary file added build/doctrees/reference-for-block/camera.doctree
Binary file not shown.
Binary file added build/doctrees/reference-for-block/pin.doctree
Binary file not shown.
Binary file added build/doctrees/reference-for-block/pwm.doctree
Binary file not shown.
Binary file not shown.
Binary file added build/doctrees/reference-for-block/system.doctree
Binary file not shown.
Binary file added build/html/_images/APin.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/Camerastarttrue.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/Dpin.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/Ppin.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/QRcodedecodingresult.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/Servosetangle.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/connectwifi.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/getadcvalue.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/getcputemperaturevalue.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/geti2cstatus.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/getpinvalue.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/getwidthofcolordetected.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/getwidthoffacedetected.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/i2cmemoryreaddata.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/i2cmemorywritedata.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/i2crecvaddress.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/i2csendaddress.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/red.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/sayhello.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/scani2caddress.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/setdetectedcolortored.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/setpinoff.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/setpinon.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/setpinvalue.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/setpwmfrequency.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/setpwmperiod.jpg
Binary file added build/html/_images/setpwmprescaler.jpg
Binary file added build/html/_images/setpwmpulsewidth.jpg
Binary file added build/html/_images/setpwmpulsewidthbfb.jpg
Binary file added build/html/_images/setstuats.jpg
Binary file added build/html/_images/swicth.jpg
Binary file added build/html/_images/ttslanguage.jpg
Binary file added build/html/_images/turnQRcodescanneron.jpg
Binary file added build/html/_images/turncolordetection.jpg
Binary file added build/html/_images/turnfacedetection.jpg
Binary file added build/html/_images/turngesturecalibrationon.jpg
Binary file added build/html/_images/turngesturedetectionon.jpg
Binary file added build/html/_images/turntrafficsigndetectionon.jpg
Binary file added build/html/_images/turnvideomonitoron.jpg
Binary file added build/html/_images/width.jpg
Binary file added build/html/_images/widthfodetectedcolor.jpg
Binary file added build/html/_images/widthofdetectedface.jpg
Binary file added build/html/_images/widthofdetectedgesture.jpg
2 changes: 1 addition & 1 deletion build/html/_sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Ezblock Technical documentation
==================================================
.. toctree::
:maxdepth: 2
:maxdepth: 3

tutorial
reference
Expand Down
11 changes: 11 additions & 0 deletions build/html/_sources/reference-for-block/TextToSpeech.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
TextToSpeech
============


## ![a](./img/RaspberryPi/TextToSpeech/ttslanguage.jpg)
- **effect:** Select the yu'y you want to convert
***

## ![a](./img/RaspberryPi/TextToSpeech/sayhello.jpg)
- **effect:** The input language will be played
***
6 changes: 6 additions & 0 deletions build/html/_sources/reference-for-block/adc.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ADC
===
## ![a](./img/RaspberryPi/ADC/APin.jpg)
- **effect:** Pin object to input analog value,Such as joystick, potentiometer, sound sensor and other modules
## ![a](./img/RaspberryPi/ADC/getadcvalue.jpg)
- **effect:** Get the value of the corresponding analog pin
4 changes: 2 additions & 2 deletions build/html/_sources/reference-for-block/basic.md.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Basic


## ![a](./img/basic/Start.jpg)
## ![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)
## ![a](./img/basic/forever.jpg)
- **effect:** The content in the block will loop indefinitely
***

Expand Down
1 change: 1 addition & 0 deletions build/html/_sources/reference-for-block/block.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ This article introduces the use and annotation of blocks in block programming
colour
variables
functions
raspberryPI
63 changes: 63 additions & 0 deletions build/html/_sources/reference-for-block/camera.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
Camera
======

## ![a](./img/RaspberryPi/camera/getwidthofcolordetected.jpg)
- **effect:** The width or height of the detected color. If there are multiple detected colors in the camera, they will be returned in the order of detection. All widths
***
## ![a](./img/RaspberryPi/camera/getwidthoffacedetected.jpg)
- **effect:** Returns the height or width of the face
***
## ![a](./img/RaspberryPi/camera/QRcodedecodingresult.jpg)
- **effect:** Return the result of the QR code
***
## ![a](./img/RaspberryPi/camera/red.jpg)
- **effect:** Color object for color recognition
***
## ![a](./img/RaspberryPi/camera/setdetectedcolortored.jpg)
- **effect:** Set the color to be detected
***
## ![a](./img/RaspberryPi/camera/setthecolordetectionstatusfalse.jpg)
- **effect:** Enable or disable color recognition
***
## ![a](./img/RaspberryPi/camera/setthefacedetectionstatusfalse.jpg)
- **effect:** Turn on or turn off face recognition
***
## ![a](./img/RaspberryPi/camera/turncolordetection.jpg)
- **effect:** Enable or disable color recognition
***
## ![a](./img/RaspberryPi/camera/turnfacedetection.jpg)
- **effect:** Turn on or turn off face recognition
***
## ![a](./img/RaspberryPi/camera/turngesturecalibrationon.jpg)
- **effect:** Enable or disable gesture calibration
***
## ![a](./img/RaspberryPi/camera/turngesturedetectionon.jpg)
- **effect:** Enable or disable gesture detection
***
## ![a](./img/RaspberryPi/camera/turnQRcodescanneron.jpg)
- **effect:** Enable or disable QR code detection
***
## ![a](./img/RaspberryPi/camera/turntrafficsigndetectionon.jpg)
- **effect:** Enable or disable traffic sign detection
***
## ![a](./img/RaspberryPi/camera/turnvideomonitoron.jpg)
- **effect:** Start or close the camera screen
***
## ![a](./img/RaspberryPi/camera/width.jpg)
- **effect:** Object to be detected
***
## ![a](./img/RaspberryPi/camera/widthfodetectedcolor.jpg)
- **effect:** Color width or height
***
## ![a](./img/RaspberryPi/camera/widthofdetectedface.jpg)
- **effect:** The width or height of the face
***
## ![a](./img/RaspberryPi/camera/widthofdetectedgesture.jpg)
- **effect:** The width or height of the gesture
***
## ![a](./img/RaspberryPi/camera/widthofdetectedtrafficsign.jpg)
- **effect:** The width or height of the traffic sign
***
## ![a](./img/RaspberryPi/camera/Camerastarttrue.jpg)
- **effect:** Start camera
***
30 changes: 30 additions & 0 deletions build/html/_sources/reference-for-block/pin.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Pin
===
## ![a](./img/RaspberryPi/Dpin/Dpin.jpg)
- **effect:** pin object
***

## ![a](./img/RaspberryPi/Dpin/swicth.jpg)
- **effect:** pin objects of buttons and led lights on the expansion board
***

## ![a](./img/RaspberryPi/Dpin/setstuats.jpg)
- **effect:** Set the mode of the pin to output or input,Set the mode of the pin to output or input, for example, the led light is output, and the button is input
***

## ![a](./img/RaspberryPi/Dpin/getpinvalue.jpg)
- **effect:** Get the status of the specified pin will return 0 or 1
***

## ![a](./img/RaspberryPi/Dpin/setpinoff.jpg)
- **effect:** Setting the pin to off means setting the value of the pin to 0
***

## ![a](./img/RaspberryPi/Dpin/setpinon.jpg)
- **effect:** Setting the pin to on means setting the value of the pin to 1
***

## ![a](./img/RaspberryPi/Dpin/setpinvalue.jpg)
- **effect:** Set the state of the pin, the parameter can only be 0 or 1
***

33 changes: 33 additions & 0 deletions build/html/_sources/reference-for-block/pwm.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
PWM
===

## ![a](./img/RaspberryPi/PWM/Ppin.jpg)
- **effect:** pwm pin object
***

## ![a](./img/RaspberryPi/PWM/Servosetangle.jpg)
- **effect:** set the servo angle
- **parameter:** It can only be a numerical value, indicating the angle you want to set, between -90 and 90
***

## ![a](./img/RaspberryPi/PWM/setpwmpulsewidth.jpg)
- **effect:** Set the pwm value directly to adjust the "strength" of the pin
- **parameter:** 0~4095
***

## ![a](./img/RaspberryPi/PWM/setpwmpulsewidthbfb.jpg)
- **effect:** Set the pwm value by percentage
- **parameter:** 0.00~1.00
***

## ![a](./img/RaspberryPi/PWM/setpwmfrequency.jpg)
- **effect:** Set the evaluation rate of the pin to 50 (cycle 20 milliseconds)
***

## ![a](./img/RaspberryPi/PWM/setpwmprescaler.jpg)
- **effect:** Set the clock rate of the pin pwm unit
***

## ![a](./img/RaspberryPi/PWM/setpwmperiod.jpg)
- **effect:** Set period
***
12 changes: 12 additions & 0 deletions build/html/_sources/reference-for-block/raspberryPI.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
RaspberryPi
===========

.. toctree::
:maxdepth: 1

pin
adc
pwm
system
TextToSpeech
camera
34 changes: 34 additions & 0 deletions build/html/_sources/reference-for-block/system.md.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
System
======

## ![a](./img/RaspberryPi/System/connectwifi.jpg)
- **effect:** Connect to wifi
***

## ![a](./img/RaspberryPi/System/getcputemperaturevalue.jpg)
- **effect:** Get the status of the Raspberry Pi
***

## ![a](./img/RaspberryPi/System/geti2cstatus.jpg)
- **effect:** Whether there is this i2c address in the connected device, the return value is Boolean
***

## ![a](./img/RaspberryPi/System/scani2caddress.jpg)
- **effect:** List all i2c addresses
***

## ![a](./img/RaspberryPi/System/i2csendaddress.jpg)
- **effect:** Send data to the corresponding address
***

## ![a](./img/RaspberryPi/System/i2crecvaddress.jpg)
- **effect:** Read the data corresponding to the address
***

## ![a](./img/RaspberryPi/System/i2cmemoryreaddata.jpg)
- **effect:** Send data to the corresponding address
***

## ![a](./img/RaspberryPi/System/i2cmemorywritedata.jpg)
- **effect:** Read the data corresponding to the address
***
6 changes: 5 additions & 1 deletion build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ <h1>Ezblock Technical documentation<a class="headerlink" href="#ezblock-technica
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="reference.html">References</a><ul>
<li class="toctree-l2"><a class="reference internal" href="reference.html#language">language</a></li>
<li class="toctree-l2"><a class="reference internal" href="reference.html#language">language</a><ul>
<li class="toctree-l3"><a class="reference internal" href="reference-for-block/block.html">Block</a></li>
<li class="toctree-l3"><a class="reference internal" href="reference-for-python/ezblock.html">Python</a></li>
</ul>
</li>
</ul>
</li>
</ul>
Expand Down
Binary file modified build/html/objects.inv
Binary file not shown.

0 comments on commit 452e41f

Please sign in to comment.