diff --git a/docs/assets/img/product_pics/module/gsm/NanoSIM.jpeg b/docs/assets/img/product_pics/module/gsm/NanoSIM.jpeg new file mode 100644 index 00000000..579d6db9 Binary files /dev/null and b/docs/assets/img/product_pics/module/gsm/NanoSIM.jpeg differ diff --git a/docs/assets/img/product_pics/module/lte/NanoSIM.jpeg b/docs/assets/img/product_pics/module/lte/NanoSIM.jpeg new file mode 100644 index 00000000..579d6db9 Binary files /dev/null and b/docs/assets/img/product_pics/module/lte/NanoSIM.jpeg differ diff --git a/docs/assets/img/product_pics/module/nb-iot/NanoSIM.jpeg b/docs/assets/img/product_pics/module/nb-iot/NanoSIM.jpeg new file mode 100644 index 00000000..579d6db9 Binary files /dev/null and b/docs/assets/img/product_pics/module/nb-iot/NanoSIM.jpeg differ diff --git a/docs/en/base/m5go_bottom.md b/docs/en/base/m5go_bottom.md index 3f879f0d..6974661e 100644 --- a/docs/en/base/m5go_bottom.md +++ b/docs/en/base/m5go_bottom.md @@ -8,7 +8,7 @@ ## Description -**M5GO BOTTOM** is apparently the bottom part of M5GO which is a upgrade of basic bottoms, with a larger battery(500mAh), LOGO-compatilble holes, MICPHONE, LED Bar , two more CONNEXT PORT,and more. +**M5GO BOTTOM** is apparently the bottom part of M5GO which is a upgrade of basic bottoms, with a larger battery(500mAh), LOGO-compatilble holes, Analog Micphone, LED Bar , two more CONNEXT PORT,and more. **M5GO BOTTOM** is the same Bottom of [M5GO Lite](https://docs.m5stack.com/#/en/core/m5go_lite), [M5GO IoT Kit](https://docs.m5stack.com/#/en/core/m5go) and [M5Fire](https://docs.m5stack.com/#/en/core/fire). @@ -29,7 +29,7 @@ | :----------: |:------------: | | LED Pin | GPIO15 | -**MIC** +**Analog MIC** Analog Microphone diff --git a/docs/en/module/gsm.md b/docs/en/module/gsm.md index e6beee2b..b5d4ee84 100644 --- a/docs/en/module/gsm.md +++ b/docs/en/module/gsm.md @@ -24,7 +24,7 @@ Power Operation: - Power Off: Button long-press for 8s - Reset module: GPIO26 HIGH - +


*The Global System for Mobile Communications (GSM) is a standard developed by the European Telecommunications Standards Institute (ETSI) to describe the protocols for second-generation (2G) digital cellular networks used by mobile devices such as mobile phones and tablets.* @@ -38,8 +38,8 @@ Product Feature: - 2x LEDs - 2X speakers: SPK1 reserved, SPK2 connected to PIN25 - M6315 - - Tem:-40°C ~ + 85°C - - Frequency Band(MHz): + - Tem?-40°C ~ + 85°C + - Frequency Band(MHz?: - 850/900/1800/1900 - Data Transmit: - spped: (kbps) 85.6(UL)/85.6(DL) @@ -48,8 +48,8 @@ Product Feature: - Network Protocol: IPV4/IPV6*/TCP/UDP/PPP/HTTP/FTP/MQTT - Consumption: - <2mA@DRX=5 -- Product Size:54.2mm x 54.2mm x 12.8mm -- Product weight:12.8g +- Product Size?54.2mm x 54.2mm x 12.8mm +- Product weight?12.8g ## Include diff --git a/docs/en/module/lte.md b/docs/en/module/lte.md index a867ef23..d05da58b 100644 --- a/docs/en/module/lte.md +++ b/docs/en/module/lte.md @@ -17,6 +17,7 @@ In the LTE-4G module scheme, we added more hardware resources, 1 reserved speake M8321 is 4V power input, so in the hardware of LTE-4G module, we added a Bidirectional Voltage-Level Translator (TXS0104E), to switch the power supply to 4V. +
*In telecommunication, Long-Term Evolution (LTE) is a standard for wireless broadband communication for mobile devices and data terminals, based on the GSM/EDGE and UMTS/HSPA technologies. It increases the capacity and speed using a different radio interface together with core network improvements.* @@ -28,13 +29,13 @@ Product Feature: - Power Input: 5V - Serial Communication: Uart2 16/17 - M8321 - - Tem:-40°C ~ + 85°C + - Tem?-40°C ~ + 85°C - Frequency Band: - LTE-TDD:B38/B39/B40/B41 - LTE-FDD:B1/B3/B8 - TD-SCDMA:B34/B39 - WCDMA:B1/B8 - - GSM(MHz):900/1800 + - GSM(MHz)?900/1800 - Data Transmit: - LTE speed: (Mbps) LTE-FDD 50(UL)/150(DL) LTE-TDD 50(UL)/100(DL) - HSPA+ speed: (Mbps) 5.76(UL)/21.6(DL) @@ -47,8 +48,8 @@ Product Feature: - 17uA@Poweroff - 3mA@Sleep - 45mA@Idle -- Product Size:54.2mm x 54.2mm x 12.8mm -- Product weight:18.1g +- Product Size?54.2mm x 54.2mm x 12.8mm +- Product weight?18.1g ## Include diff --git a/docs/en/module/nb-iot.md b/docs/en/module/nb-iot.md index 52d4c6fe..08e3f953 100644 --- a/docs/en/module/nb-iot.md +++ b/docs/en/module/nb-iot.md @@ -1,6 +1,7 @@ # Module NB-IoT {docsify-ignore-all}     + *** @@ -60,8 +61,8 @@ Power Operation: - 167mA@Tx(23dBm/15kHzST) 54mA@Rx -output power: 23dBm±2dB - Certificate: CCC/SRRC/NAL/GTI -- Product Size:54.2mm x 54.2mm x 12.8mm -- Product weight:13.3g +- Product Size?54.2mm x 54.2mm x 12.8mm +- Product weight?13.3g ## Include diff --git a/docs/en/uiflow/FACES.md b/docs/en/uiflow/FACES.md new file mode 100644 index 00000000..fc8c2e7b --- /dev/null +++ b/docs/en/uiflow/FACES.md @@ -0,0 +1,216 @@ +# Calculator +__________________________ + +#### Feature introduction + +> Enter numbers + +> + +>* __Get press string__ +Return keyboard character + +>* __Get press button int value__ +Return keyboard ASIIC value + +>* __Clear press string__ +Clear input characters + +>* __Delete press string last byte__ +Delete the last byte entered + +>* __is new button pressed__ +Press the button to return true + +#### Usage + +> The screen displays the entered number + +> + + +# Encoder +__________________________ + +#### Feature introduction + +> Read encoder value + +> + +>* __Set LED pos color__ +Set the specified LED color + +>* __Clear encode value to zero__ +Encoder value is zeroed + +>* __Get encode value__ +Return encode value + +>* __Get encode direction__ +Return to the direction of rotation + +>* __is encode pressed__ +The encoder knob is pressed back to true + +#### Usage + +> The screen displays the encoder value and press the knob to return to zero. + +> + + +# FINGER +__________________________ + +#### Feature introduction + +> Read fingerprint information + +> + +>* __get state__ +Return sensor status + +>* __get access__ +Return user rights + +>* __get id__ +Return ID + +>* __remove All__ +Remove all fingerprint information + +>* __remove faces_finger id__ +Remove specified fingerprint ID + +>* __faces_finger add user id access__ +Add fingerprint information + +>* __faces_finger read user with id access__ +Verify fingerprint successfully executed callback program + +>* __faces_finger getUnknow__ +Read unknown fingerprint information executive + +#### Usage + +> Read the fingerprint information, match the bright green light to match the bright red light + +> + + +# GameBoy +__________________________ + +#### Feature introduction + +> Read the key value of the gameboy + +> + +>* __Get is press__ +Return button status, continuous detection + +>* __Get was pressed__ +Back button status, check once + +#### Usage + +> If the up button is pressed green, the down button is pressed red. + +> + + + +# Joystick +__________________________ + +#### Feature introduction + +> Return to joystick data + +> + +>* __Get X value__ +Return X-axis direction data + +>* __Get Y value__ +Return Y-axis direction data + +>* __Is pressed__ +Press the button to return true + +>* __Get reverse X value__ +Return X-axis reverse data + +>* __Get reverse Y value__ +Return y-axis reverse data + +>* __Set LED pos color__ +Set the color of the specified location LED + +#### Usage + +> The screen displays the joystick data + +> + + +# KeyBoard +__________________________ + +#### Feature introduction + +> Return keyboard key data + +> + +>* __Get press string__ +Return button character + +>* __Clear press string__ +Clear input characters + +>* __Delete press string last byte__ +Delete the last byte entered + +>* __Get press button int value__ +Return button ASIIC value + +>* __Is new button pressed__ +If the button is pressed back to true + +#### Usage + +> The screen displays the characters entered + +> + + +# RFID +__________________________ + +#### Feature introduction + +> Return RFID card data + +> + +>* __read string from addr__ +Read data from the specified address + +>* __write to addr__ +Write data to address + +>* __card near__ +If the RFID card is close to returning true + +>* __card uid__ +Return RFID card UID + +#### Usage + +> Screen displays RFID card data + +> \ No newline at end of file diff --git a/docs/en/uiflow/Modules.md b/docs/en/uiflow/Modules.md new file mode 100644 index 00000000..4a9e6edb --- /dev/null +++ b/docs/en/uiflow/Modules.md @@ -0,0 +1,181 @@ +# LidarBOT +__________________________ + +#### Feature introduction + +> Radar scan navigation car, control walking and lighting, display map + +> + +>* __Lidarbot set with neopixel__ +Set the radar car led color + +>* __Lidarbot set number with neopixel__ +Set the led color separately + +>* __Lidarbot Seed(0±7)__ +Set walking direction and speed + +>* __Lidarbot set Motor Speed X(-7~7) Y(-7~7) Z(-7~7) A(-7~7)__ +Set the motor speed and direction in the X and Y directions + +>* __Lidarbot set Servo angle__ +Set the steering angle + +>* __Lidarbot X axis speed(0±7)Y axis speed (0±7)__ +Set the X and Y axis directions + +>* __Lidarbot Draw Map__ +Drawing a radar map + +>* __Lidarbot Get Distance__ +Read the specified angle obstacle distance + +#### Usage + +> The car goes forward at 3 speeds for 5 seconds. + +> + + +# STEPMOTOR +__________________________ + +#### Feature introduction + +> Stepper motor control + +> + +>* __Motor Address__ +Module's I2C address + +>* __Motor X Y Z Speed__ +Set the stepping motor X-axis Y-axis Z-axis rotation steps and speed + +>* __Put g code__ +Run G code + +>* __Set mode__ +Set the motor operating mode, distance mode or relative value mode + +>* __lock motor__ +Lock motor + +>* __unlock motor__ +Unlock motor + + +#### Usage + +> Motor is running alternately in reverse + +> + + +# SERVO +__________________________ + +#### Feature introduction + +> Steering gear control + +> + +>* __Set servo rotate__ +Set the specified servo angle + +>* __Set servo write us__ +Set the servo pulse time + +#### Usage + +> Control the 0-5 steering gear to rotate 90 degrees + +> + + +# Bala Motor +__________________________ + +#### Feature introduction + +> Control Bala coded motor operation + +> + +>* __set rotate speed__ +Set the motor rotation direction and speed + +>* __Run Speed__ +Set a certain number of pulses to travel in a running direction at a certain speed + +>* __Go To Position MaxSpeed__ +Run 500 pulses at the set speed + +>* __Stop__ +Motor stop + +>* __Read encode__ +Read encoder value + + +#### Usage + +> A button presses forward 500 pulses at a speed of 255 + +> + + +# LEGO+ +__________________________ + +#### Feature introduction + +> Control lego code motor operation + +> + +>* __Set rotate pwm__ +Set motor direction and speed + +>* __Stop__ +Motor stop + +>* __Clear encode__ +Encoder clear + +>* __Read encode__ +Read encoder data + + +#### Usage + +> + +> + + +# PM2.5 +__________________________ + +#### Feature introduction + +> Dust particle detection, output concentration or quantity + +> + +>* __PM2.5 get value in__ +Set the detection particle diameter and detection mode, return the detection result SPM is the standard particle concentration value APM is the atmospheric environment particle concentration value + +>* __PM2.5 get particles above um number__ +Returns the amount of particulate matter in the specified diameter + + +#### Usage + +> The screen shows the amount of PM2.5 particles + +> + + diff --git a/docs/en/uiflow/Units.md b/docs/en/uiflow/Units.md new file mode 100644 index 00000000..cff4f081 --- /dev/null +++ b/docs/en/uiflow/Units.md @@ -0,0 +1,675 @@ +# ENV +__________________________ + +#### Feature Introduction + +> One-Wire interface sensor for ambient temperature, humidity, and air pressure + +> + +>* __Get Pressure__ +Get pressure in hundredpar + +>* __Get Temperature__ +Get the temperature, display two decimal + +>* __Get Humidity__ +Get humidity + + +#### Usage + +>Display air pressure, temperature, humidity on the screen + +> + + +# PIR +__________________________ + +#### Feature Introduction + +> I/O type sensor for detecting infrared signals from humans or animals + +> + +#### Usage + +>Check if someone is close, someone is near the red light + +> + +# RGB LED +__________________________ + +#### Feature Introduction + +> Control a certain number of colored LEDs + +> + +>* __Set index RGB color__ +Set the color of the specified number of lights + +>* __Set from to RGB color__ +Set the color of the light within the specified range + +>* __Set from to R G B__ +Set the color of the light in the specified range to a custom color + +>* __Set all RGB color__ +Set the color of all RGB lights + +>* __Set brightness__ +Set the brightness of the RGB + +>* __Set neopixel hexagon matrix in__ +Set the pattern on HEX and specify the color + +>* __et neopixel hexagon matrix in red green blue__ +Set the pattern on HEX and customize the color + + +#### Usage + +> Draw a pattern use LED + +> + + +# joystick +__________________________ + +#### Feature Introduction + +> The joystick is actually a potentiometer that can be automatically reset, sliding different displacements to output different voltage signals. + +> + +>* __Get X__ +Return data on the X axis + +>* __Get Y__ +Return data for the Y axis + +>* __Get is pressed__ +Return the value of the button + +>* __Get Reverse X__ +Return X-axis reverse data + +>* __Get Reverse Y__ +Return Y-axis reverse data + +#### Usage + +> Control the color of the RGB LEDs by the joystick direction + +> + +# MAKEY +__________________________ + +#### Feature Introduction + +> Simple touch application that emits different tones and lights by touching different pins + +> + +>* __Get value__ +Return pin value + +>* __Get all value__ +Return all value + +#### Usage + +> Touch different pins to get different values to display different colors + +> + +# SERVO +________________________ + +#### Feature Introduction + +> The servo is a common driving device whose rotation angle depends on pulse control + +> + +>* __rotate to degree__ +Set the rotation angle + +>* __write us__ +Set pulse time + +#### Usage + +>Control the steering gear to rotate 90 degrees + +> + +# WEIGHT +________________________ + +#### Feature Introduction + +> HX711 is a high-precision AD conversion chip designed for electronic scales, which is converted into the corresponding weight by reading the voltage value. + +> + +>* __return to zero__ +Reference to initial value as zero + +>* __Get weight__ +Return weight + +>* __Get raw data__ +Show rawdata + +#### Usage + +>Read the weight display to the screen, press the A key to return to zero + +> + +# TRACE +________________________ + +#### Feature Introduction + +> TRACE is a commonly used sensor for auto-car toy. It is used to determine whether there are black lines by receiving reflected light. + +> + +>* __Get analog value__ +Return analog value + +>* __Get digital value__ +Return analog digital value + +>* __set limit should value__ +Set limit value + +#### Usage + +> The sensor receives white light from the reflected light and does not receive no light. + +> + + +# BUTTON +________________________ + +#### Feature Introduction + +> Detect different states of the button and perform corresponding operations + +> + +>* __Button wasPressed__ +Press the button to execute the set function + +>* __obtain button wasPressed__ +Check if the button is pressed, only once during execution + +#### Usage + +> Press the button to flash the light once + +> + + +# Dual-BUTTON +________________________ + +#### Feature Introduction + +> Detect different states of the button and perform corresponding operations + +> + +>* __Dual_Button Red wasPressed__ +Red button press to execute the set function + +>* __obtain dual button Red wasPressed__ +Check if the red button is pressed, only one time during execution + +#### Usage + +> Red button presses red light, blue button presses light + +> + + +# RGB +________________________ + +#### Feature Introduction + +> Three indicator led + +> + +>* __Set index RGB color__ +Specify the color of a serial number light + +>* __Set form to RGB color__ +Set the color of multiple RGB LEDs + +>* __Set all RGB color__ +Set all of RGB color + +>* __Set brightness__ +Set brightness of LED + +#### Usage + +> Set the color of the light + +> + + +# REALY +________________________ + +#### Feature Introduction + +> By controlling the opening and closing of the relay to achieve the purpose of weak current control of strong electricity + +> + +>* __set COM connect ON__ +Control relay closure + +>* __set COM connect OFF__ +Control relay disconnect + +#### Usage + +> Press the A button to close the relay and press the B button to turn the relay off. + +> + + +# ADC +________________________ + +#### Feature Introduction + +> Read AD values directly + +> + +>* __read voltage__ +Read voltage + +#### Usage + +> Display AD value + +> + + +# DAC +________________________ + +#### Feature Introduction + +> Perform DA conversion and output voltage, up to 3.7V + +> + +>* __output voltage save__ +Output voltage 0-3.3, and confirm whether to save to EEPROM + +>* __output voltage with raw data save__ +Output voltage 0-4096, and confirm whether to save to EEPROM + +#### Usage + +> The output voltage + +> + + +# NCIR +________________________ + +#### Feature Introduction + +> Non-contact temperature measurement, direct reading data + +> + +>* __ncir read__ +Reading temperature + +#### Usage + +> Screen display temperature + +> + + +# IR +________________________ + +#### Feature Introduction + +> Launch or accept infrared remote control signals + +> + +>* __state__ +Received infrared signal returned 1 + +>* __set on__ +Send infrared signal + +>* __set off__ +Stop sending + +#### Usage + +> Receive infrared signal to light red light + +> + + +# EXT.IO +________________________ + +#### Feature Introduction + +> Expand IO interface through I2C, read and write level operation. + +> + +>* __set mode__ +All pins are set to input or output mode + +>* __set pin mode__ +Set input or output separately + +>* __digitWrite Port__ +Control pin status, 1 bit per pin + +>* __digitWrite Pin__ +Individual control of pin status + +>* __digitRead Pin__ +Read the specified pin status + +>* __digitRead Port__ +Read all pin states + +#### Usage + +> Clear all pin states, set 2 pin high + +> + + +# ANGLE +________________________ + +#### Feature Introduction + +> Read the output value of the knob potentiometer + +> + +>* __Get value__ +Return potentiometer value + +#### Usage + +> Control the brightness of RGB LEDs + +> + +# LIGHT +________________________ + +#### Feature Introduction + +> Return light measurement + +> + +>* __Get Analog value__ +Return analog value + +>* __Get Digital value__ +Return numeric value + +#### Usage + +> As the switch control LED lights up + +> + + +# EARTH +________________________ + +#### Feature Introduction + +> Measuring soil moisture + +> + +>* __Get Analog value__ +Return analog value + +>* __Get Digital value__ +Return numeric value + +#### Usage + +> LED alarm when the soil is dry + +> + + +# ToF +________________________ + +#### Feature Introduction + +> Measuring distance up to 2 meters + +> + +>* __Get distance__ +Return distance mm + +#### Usage + +> Display distance + +> + + +# COLOR +________________________ + +#### Feature Introduction + +> Identify colors and return RGB values + +> + +>* __Get rawData__ +Return original data + +>* __Get red__ +Return red value + +>* __Get green__ +Return green value + +>* __Get blue__ +Return blue value + +#### Usage + +> Detecting color display RGB lights of corresponding colors + +> + + +# RFID +________________________ + +#### Feature Introduction + +> Identify RFID chip information + +> + +>* __read string from addr__ +Read data from address + +>* __write to addr__ +Write data to address + +>* __card near__ +RFID card close to return 1 + +>* __card uid__ +Returns the UID of the RFID card + +#### Usage + +> Identify RFID card information + +> + + +# FINGER +________________________ + +#### Feature Introduction + +> Identify fingerprint information + +> + +>* __get state__ +Read sensor status + +>* __get access__ +Return access + +>* __get id__ +Return ID + +>* __removeAll__ +Remove all fingerprint information + +>* __remove id__ +Remove fingerprint ID + +>* __add user id access__ +Add ID and access rights + +>* __read user with id access__ +The id and permission match do the following + +>* __getUnknown__ +Unknown id and permission to perform the following operations + +#### Usage + +> Record fingerprint and identify it, recognize successful green light + +> + + +# CardKB +________________________ + +#### Feature Introduction + +> Enter information via the keyboard + +> + +>* __Get key__ +Return ASIIC value + +>* __Get string__ +Return character + +>* __Get pressed__ +Detect button, press to return true + +#### Usage + +> Screen displays input characters + +> + + +# Pb.HUB +________________________ + +#### Feature Introduction + +> Extended IO interface + +> + +>* __pos digitalRead__ +Read pin digital value + +>* __pos digitalWrite value__ +Write a digital value to the pin + +>* __analogRead__ +Read analog value + +>* __Set pos RGB number to__ +Set the number of specified pins RGB + +>* __Set pos num RGB pos color__ +Set the color of the specified serial number RGB + +>* __Set pos num RGB begin count color__ +Set the RGB color within the specified range + +>* __Set pos RGB brightness__ +Set the specified pin RGB brightness + +#### Usage + +> Control 10 RGB lights via Pb.HUB + +> + + +# Pa.HUB +________________________ + +#### Feature Introduction + +> Extended I2C interface + +> + +>* __set pos state__ +Set the specified port I2C + +>* __set pos open__ +Set port to open I2C + +>* __set port value__ +Set port I2C + +#### Usage + +> Scan the I2C device through Pa.HUB control, A key to open the expansion, B key to close the expansion + +> \ No newline at end of file diff --git a/docs/en/uiflow/introduction.md b/docs/en/uiflow/introduction.md index 9e204da6..995b7b5a 100644 --- a/docs/en/uiflow/introduction.md +++ b/docs/en/uiflow/introduction.md @@ -159,7 +159,7 @@ The button can be triggered by the program, and more functions can be realized w >* __obtain Button__ The button can be triggered by the program only once, if you keep pressing it, it won’t happen unless released. -#### Instructions +#### Usage >Put the program that needs to be run after pressing the button, put it in the Button Block, and modify the corresponding button position. @@ -183,7 +183,7 @@ Get current system run time. -#### Instructions +#### Usage >Add the Wait Block to the program that needs to be delayed and set the time. When the program executes to it, it will play a delay. diff --git a/docs/en/uiflow/logic.md b/docs/en/uiflow/logic.md index 05279868..e7c79068 100644 --- a/docs/en/uiflow/logic.md +++ b/docs/en/uiflow/logic.md @@ -58,7 +58,7 @@ When the left and right logical relations __have a__, the result of the logical >* __not__ Invert the logical result of an expression, that is, notTrue=False, notFalse=True -#### Instructions +#### Usage >Add the relationship that needs to be logically added to both sides, modify the operation type @@ -81,7 +81,7 @@ Set the number of cycles >* __repeat while__ Determine whether the condition is true or not, and when inception, infinite loop -#### Instructions +#### Usage >Add repaet to the program, set the number of loops (loop conditions), add the program that needs to loop @@ -105,7 +105,7 @@ Increased from __a__ to __b__ , the number of each increment is __c__ , and the >* __break out of loop__ You can choose to jump out of the entire loop, or jump out of this loop, and execute when you execute the block. -#### Instructions +#### Usage >Add an iterative block to the program, set the iteration parameters, and the do program that runs after each iteration. Example: Iterate the brightness of the RGB bar from 0 to 100. diff --git a/docs/en/uiflow/uiflow_home_page.md b/docs/en/uiflow/uiflow_home_page.md index 8b50e3ea..570bef9e 100644 --- a/docs/en/uiflow/uiflow_home_page.md +++ b/docs/en/uiflow/uiflow_home_page.md @@ -50,6 +50,23 @@

View details »

+
+
+

Units

+

Introduction to how to use unit devices, such as ToF, ENV, Realy, inlucde I/O,UART,I2C,etc.

+

View details »

+
+
+

Modules

+

Introduce some useful modules block add to your project in UIFlow.

+

View details »

+
+
+

FACES

+

UIFlow uses FACES panel for interface interaction or data manipulation help you to improve input efficiency.

+

View details »

+
+




\ No newline at end of file diff --git a/docs/image/FACES/Calculator.png b/docs/image/FACES/Calculator.png new file mode 100644 index 00000000..d61bc500 Binary files /dev/null and b/docs/image/FACES/Calculator.png differ diff --git a/docs/image/FACES/Calculator_user.gif b/docs/image/FACES/Calculator_user.gif new file mode 100644 index 00000000..e96fb93d Binary files /dev/null and b/docs/image/FACES/Calculator_user.gif differ diff --git a/docs/image/FACES/Encoder.png b/docs/image/FACES/Encoder.png new file mode 100644 index 00000000..92961052 Binary files /dev/null and b/docs/image/FACES/Encoder.png differ diff --git a/docs/image/FACES/Encoder_user.gif b/docs/image/FACES/Encoder_user.gif new file mode 100644 index 00000000..161af352 Binary files /dev/null and b/docs/image/FACES/Encoder_user.gif differ diff --git a/docs/image/FACES/FINGER.png b/docs/image/FACES/FINGER.png new file mode 100644 index 00000000..ec8ae30b Binary files /dev/null and b/docs/image/FACES/FINGER.png differ diff --git a/docs/image/FACES/FINGER_user.gif b/docs/image/FACES/FINGER_user.gif new file mode 100644 index 00000000..19f97111 Binary files /dev/null and b/docs/image/FACES/FINGER_user.gif differ diff --git a/docs/image/FACES/GameBoy.png b/docs/image/FACES/GameBoy.png new file mode 100644 index 00000000..bad32545 Binary files /dev/null and b/docs/image/FACES/GameBoy.png differ diff --git a/docs/image/FACES/GameBoy_user.gif b/docs/image/FACES/GameBoy_user.gif new file mode 100644 index 00000000..f41bab13 Binary files /dev/null and b/docs/image/FACES/GameBoy_user.gif differ diff --git a/docs/image/FACES/Joystick.png b/docs/image/FACES/Joystick.png new file mode 100644 index 00000000..089c4ab4 Binary files /dev/null and b/docs/image/FACES/Joystick.png differ diff --git a/docs/image/FACES/Joystick_user.gif b/docs/image/FACES/Joystick_user.gif new file mode 100644 index 00000000..3aa0f1d8 Binary files /dev/null and b/docs/image/FACES/Joystick_user.gif differ diff --git a/docs/image/FACES/KeyBoard.png b/docs/image/FACES/KeyBoard.png new file mode 100644 index 00000000..224125bf Binary files /dev/null and b/docs/image/FACES/KeyBoard.png differ diff --git a/docs/image/FACES/KeyBoard_user.gif b/docs/image/FACES/KeyBoard_user.gif new file mode 100644 index 00000000..9e4781fb Binary files /dev/null and b/docs/image/FACES/KeyBoard_user.gif differ diff --git a/docs/image/FACES/RFID.png b/docs/image/FACES/RFID.png new file mode 100644 index 00000000..7fd6c35c Binary files /dev/null and b/docs/image/FACES/RFID.png differ diff --git a/docs/image/FACES/RFID_user.gif b/docs/image/FACES/RFID_user.gif new file mode 100644 index 00000000..f2120d05 Binary files /dev/null and b/docs/image/FACES/RFID_user.gif differ diff --git a/docs/image/Modules/BALA.png b/docs/image/Modules/BALA.png new file mode 100644 index 00000000..2b678094 Binary files /dev/null and b/docs/image/Modules/BALA.png differ diff --git a/docs/image/Modules/BALA_user.gif b/docs/image/Modules/BALA_user.gif new file mode 100644 index 00000000..746e791f Binary files /dev/null and b/docs/image/Modules/BALA_user.gif differ diff --git a/docs/image/Modules/Bala Motor.png b/docs/image/Modules/Bala Motor.png new file mode 100644 index 00000000..cbedd36b Binary files /dev/null and b/docs/image/Modules/Bala Motor.png differ diff --git a/docs/image/Modules/Bala Motor_user.gif b/docs/image/Modules/Bala Motor_user.gif new file mode 100644 index 00000000..ab752c93 Binary files /dev/null and b/docs/image/Modules/Bala Motor_user.gif differ diff --git a/docs/image/Modules/LEGO+.png b/docs/image/Modules/LEGO+.png new file mode 100644 index 00000000..f9ad8a5e Binary files /dev/null and b/docs/image/Modules/LEGO+.png differ diff --git a/docs/image/Modules/LEGO+_user.gif b/docs/image/Modules/LEGO+_user.gif new file mode 100644 index 00000000..511c872b Binary files /dev/null and b/docs/image/Modules/LEGO+_user.gif differ diff --git a/docs/image/Modules/LidarBOT.png b/docs/image/Modules/LidarBOT.png new file mode 100644 index 00000000..42c3091c Binary files /dev/null and b/docs/image/Modules/LidarBOT.png differ diff --git a/docs/image/Modules/LoRaWAN.png b/docs/image/Modules/LoRaWAN.png new file mode 100644 index 00000000..77511a36 Binary files /dev/null and b/docs/image/Modules/LoRaWAN.png differ diff --git a/docs/image/Modules/PM2.5.png b/docs/image/Modules/PM2.5.png new file mode 100644 index 00000000..5f5fd6d7 Binary files /dev/null and b/docs/image/Modules/PM2.5.png differ diff --git a/docs/image/Modules/SERVO.png b/docs/image/Modules/SERVO.png new file mode 100644 index 00000000..a166c826 Binary files /dev/null and b/docs/image/Modules/SERVO.png differ diff --git a/docs/image/Modules/SERVO_user.gif b/docs/image/Modules/SERVO_user.gif new file mode 100644 index 00000000..b5c4013e Binary files /dev/null and b/docs/image/Modules/SERVO_user.gif differ diff --git a/docs/image/Modules/STEPMOTOR.png b/docs/image/Modules/STEPMOTOR.png new file mode 100644 index 00000000..7e4b1040 Binary files /dev/null and b/docs/image/Modules/STEPMOTOR.png differ diff --git a/docs/image/Modules/STEPMOTOR_user.gif b/docs/image/Modules/STEPMOTOR_user.gif new file mode 100644 index 00000000..c1a86649 Binary files /dev/null and b/docs/image/Modules/STEPMOTOR_user.gif differ diff --git a/docs/image/Units/ADC.png b/docs/image/Units/ADC.png new file mode 100644 index 00000000..ef182296 Binary files /dev/null and b/docs/image/Units/ADC.png differ diff --git a/docs/image/Units/ADC_user.gif b/docs/image/Units/ADC_user.gif new file mode 100644 index 00000000..4fc62b35 Binary files /dev/null and b/docs/image/Units/ADC_user.gif differ diff --git a/docs/image/Units/ANGLE.png b/docs/image/Units/ANGLE.png new file mode 100644 index 00000000..b40f5d68 Binary files /dev/null and b/docs/image/Units/ANGLE.png differ diff --git a/docs/image/Units/ANGLE_user.gif b/docs/image/Units/ANGLE_user.gif new file mode 100644 index 00000000..61be21fe Binary files /dev/null and b/docs/image/Units/ANGLE_user.gif differ diff --git a/docs/image/Units/BALA_user.png b/docs/image/Units/BALA_user.png new file mode 100644 index 00000000..2b678094 Binary files /dev/null and b/docs/image/Units/BALA_user.png differ diff --git a/docs/image/Units/BUTTON.png b/docs/image/Units/BUTTON.png new file mode 100644 index 00000000..34640371 Binary files /dev/null and b/docs/image/Units/BUTTON.png differ diff --git a/docs/image/Units/BUTTON_user.gif b/docs/image/Units/BUTTON_user.gif new file mode 100644 index 00000000..f359aec2 Binary files /dev/null and b/docs/image/Units/BUTTON_user.gif differ diff --git a/docs/image/Units/Bala Motor.png b/docs/image/Units/Bala Motor.png new file mode 100644 index 00000000..cbedd36b Binary files /dev/null and b/docs/image/Units/Bala Motor.png differ diff --git a/docs/image/Units/COLOR.png b/docs/image/Units/COLOR.png new file mode 100644 index 00000000..e753b72f Binary files /dev/null and b/docs/image/Units/COLOR.png differ diff --git a/docs/image/Units/COLOR_user.gif b/docs/image/Units/COLOR_user.gif new file mode 100644 index 00000000..d7f92c1a Binary files /dev/null and b/docs/image/Units/COLOR_user.gif differ diff --git a/docs/image/Units/CardKB.png b/docs/image/Units/CardKB.png new file mode 100644 index 00000000..6c021119 Binary files /dev/null and b/docs/image/Units/CardKB.png differ diff --git a/docs/image/Units/CardKB_user.gif b/docs/image/Units/CardKB_user.gif new file mode 100644 index 00000000..ee5f4534 Binary files /dev/null and b/docs/image/Units/CardKB_user.gif differ diff --git a/docs/image/Units/DAC.png b/docs/image/Units/DAC.png new file mode 100644 index 00000000..789b78c1 Binary files /dev/null and b/docs/image/Units/DAC.png differ diff --git a/docs/image/Units/DAC_user.gif b/docs/image/Units/DAC_user.gif new file mode 100644 index 00000000..c1f9aebe Binary files /dev/null and b/docs/image/Units/DAC_user.gif differ diff --git a/docs/image/Units/Dual-BUTTON.png b/docs/image/Units/Dual-BUTTON.png new file mode 100644 index 00000000..1938565f Binary files /dev/null and b/docs/image/Units/Dual-BUTTON.png differ diff --git a/docs/image/Units/Dual-BUTTON_user.gif b/docs/image/Units/Dual-BUTTON_user.gif new file mode 100644 index 00000000..ef964a24 Binary files /dev/null and b/docs/image/Units/Dual-BUTTON_user.gif differ diff --git a/docs/image/Units/EARTH.png b/docs/image/Units/EARTH.png new file mode 100644 index 00000000..1d438ca0 Binary files /dev/null and b/docs/image/Units/EARTH.png differ diff --git a/docs/image/Units/EARTH_user.gif b/docs/image/Units/EARTH_user.gif new file mode 100644 index 00000000..1db92021 Binary files /dev/null and b/docs/image/Units/EARTH_user.gif differ diff --git a/docs/image/Units/ENV.png b/docs/image/Units/ENV.png new file mode 100644 index 00000000..96a966a6 Binary files /dev/null and b/docs/image/Units/ENV.png differ diff --git a/docs/image/Units/ENV_user.gif b/docs/image/Units/ENV_user.gif new file mode 100644 index 00000000..e4473cf6 Binary files /dev/null and b/docs/image/Units/ENV_user.gif differ diff --git a/docs/image/Units/EXT.IO.png b/docs/image/Units/EXT.IO.png new file mode 100644 index 00000000..2bee0ef7 Binary files /dev/null and b/docs/image/Units/EXT.IO.png differ diff --git a/docs/image/Units/EXT.IO_user.gif b/docs/image/Units/EXT.IO_user.gif new file mode 100644 index 00000000..a8f63758 Binary files /dev/null and b/docs/image/Units/EXT.IO_user.gif differ diff --git a/docs/image/Units/FINGER.png b/docs/image/Units/FINGER.png new file mode 100644 index 00000000..053b2e02 Binary files /dev/null and b/docs/image/Units/FINGER.png differ diff --git a/docs/image/Units/FINGER_user.gif b/docs/image/Units/FINGER_user.gif new file mode 100644 index 00000000..ec75711e Binary files /dev/null and b/docs/image/Units/FINGER_user.gif differ diff --git a/docs/image/Units/IR.png b/docs/image/Units/IR.png new file mode 100644 index 00000000..362df528 Binary files /dev/null and b/docs/image/Units/IR.png differ diff --git a/docs/image/Units/IR_user.gif b/docs/image/Units/IR_user.gif new file mode 100644 index 00000000..773c435f Binary files /dev/null and b/docs/image/Units/IR_user.gif differ diff --git a/docs/image/Units/LEGO+.png b/docs/image/Units/LEGO+.png new file mode 100644 index 00000000..f9ad8a5e Binary files /dev/null and b/docs/image/Units/LEGO+.png differ diff --git a/docs/image/Units/LIGHT.png b/docs/image/Units/LIGHT.png new file mode 100644 index 00000000..d794738f Binary files /dev/null and b/docs/image/Units/LIGHT.png differ diff --git a/docs/image/Units/LIGHT_user.gif b/docs/image/Units/LIGHT_user.gif new file mode 100644 index 00000000..36044141 Binary files /dev/null and b/docs/image/Units/LIGHT_user.gif differ diff --git a/docs/image/Units/LidarBOT.png b/docs/image/Units/LidarBOT.png new file mode 100644 index 00000000..42c3091c Binary files /dev/null and b/docs/image/Units/LidarBOT.png differ diff --git a/docs/image/Units/MAKEY.png b/docs/image/Units/MAKEY.png new file mode 100644 index 00000000..85b89ff3 Binary files /dev/null and b/docs/image/Units/MAKEY.png differ diff --git a/docs/image/Units/MAKEY_user.gif b/docs/image/Units/MAKEY_user.gif new file mode 100644 index 00000000..c0b4e190 Binary files /dev/null and b/docs/image/Units/MAKEY_user.gif differ diff --git a/docs/image/Units/NCIR.png b/docs/image/Units/NCIR.png new file mode 100644 index 00000000..33c3c2dd Binary files /dev/null and b/docs/image/Units/NCIR.png differ diff --git a/docs/image/Units/NCIR_user.gif b/docs/image/Units/NCIR_user.gif new file mode 100644 index 00000000..4149fb51 Binary files /dev/null and b/docs/image/Units/NCIR_user.gif differ diff --git a/docs/image/Units/PIR.png b/docs/image/Units/PIR.png new file mode 100644 index 00000000..7e265d6a Binary files /dev/null and b/docs/image/Units/PIR.png differ diff --git a/docs/image/Units/PIR_user.gif b/docs/image/Units/PIR_user.gif new file mode 100644 index 00000000..2c633816 Binary files /dev/null and b/docs/image/Units/PIR_user.gif differ diff --git a/docs/image/Units/PM2.5.png b/docs/image/Units/PM2.5.png new file mode 100644 index 00000000..5f5fd6d7 Binary files /dev/null and b/docs/image/Units/PM2.5.png differ diff --git a/docs/image/Units/Pa.HUB.png b/docs/image/Units/Pa.HUB.png new file mode 100644 index 00000000..77b4bbed Binary files /dev/null and b/docs/image/Units/Pa.HUB.png differ diff --git a/docs/image/Units/Pa.HUB_user.gif b/docs/image/Units/Pa.HUB_user.gif new file mode 100644 index 00000000..a51c2184 Binary files /dev/null and b/docs/image/Units/Pa.HUB_user.gif differ diff --git a/docs/image/Units/Pb.HUB.png b/docs/image/Units/Pb.HUB.png new file mode 100644 index 00000000..7243d238 Binary files /dev/null and b/docs/image/Units/Pb.HUB.png differ diff --git a/docs/image/Units/Pb.HUB_user.gif b/docs/image/Units/Pb.HUB_user.gif new file mode 100644 index 00000000..8482b6a1 Binary files /dev/null and b/docs/image/Units/Pb.HUB_user.gif differ diff --git a/docs/image/Units/RELAY.png b/docs/image/Units/RELAY.png new file mode 100644 index 00000000..481603f8 Binary files /dev/null and b/docs/image/Units/RELAY.png differ diff --git a/docs/image/Units/RELAY_user.gif b/docs/image/Units/RELAY_user.gif new file mode 100644 index 00000000..122165ac Binary files /dev/null and b/docs/image/Units/RELAY_user.gif differ diff --git a/docs/image/Units/RFID.png b/docs/image/Units/RFID.png new file mode 100644 index 00000000..ec1ac68d Binary files /dev/null and b/docs/image/Units/RFID.png differ diff --git a/docs/image/Units/RFID_user.gif b/docs/image/Units/RFID_user.gif new file mode 100644 index 00000000..c14b0fff Binary files /dev/null and b/docs/image/Units/RFID_user.gif differ diff --git a/docs/image/Units/RGB LED.png b/docs/image/Units/RGB LED.png new file mode 100644 index 00000000..bad60594 Binary files /dev/null and b/docs/image/Units/RGB LED.png differ diff --git a/docs/image/Units/RGB LED_user.gif b/docs/image/Units/RGB LED_user.gif new file mode 100644 index 00000000..c9329460 Binary files /dev/null and b/docs/image/Units/RGB LED_user.gif differ diff --git a/docs/image/Units/RGB.png b/docs/image/Units/RGB.png new file mode 100644 index 00000000..ad1ffd0a Binary files /dev/null and b/docs/image/Units/RGB.png differ diff --git a/docs/image/Units/RGB_user.gif b/docs/image/Units/RGB_user.gif new file mode 100644 index 00000000..870c16b1 Binary files /dev/null and b/docs/image/Units/RGB_user.gif differ diff --git a/docs/image/Units/SERVO.png b/docs/image/Units/SERVO.png new file mode 100644 index 00000000..9355203c Binary files /dev/null and b/docs/image/Units/SERVO.png differ diff --git a/docs/image/Units/SERVO_user.gif b/docs/image/Units/SERVO_user.gif new file mode 100644 index 00000000..8b989763 Binary files /dev/null and b/docs/image/Units/SERVO_user.gif differ diff --git a/docs/image/Units/TRACE.png b/docs/image/Units/TRACE.png new file mode 100644 index 00000000..d41611b6 Binary files /dev/null and b/docs/image/Units/TRACE.png differ diff --git a/docs/image/Units/TRACE_user.gif b/docs/image/Units/TRACE_user.gif new file mode 100644 index 00000000..bd2cff35 Binary files /dev/null and b/docs/image/Units/TRACE_user.gif differ diff --git a/docs/image/Units/ToF.png b/docs/image/Units/ToF.png new file mode 100644 index 00000000..4c52eb8b Binary files /dev/null and b/docs/image/Units/ToF.png differ diff --git a/docs/image/Units/ToF_user.gif b/docs/image/Units/ToF_user.gif new file mode 100644 index 00000000..c2a9696e Binary files /dev/null and b/docs/image/Units/ToF_user.gif differ diff --git a/docs/image/Units/WEIGHT.png b/docs/image/Units/WEIGHT.png new file mode 100644 index 00000000..3d9daaad Binary files /dev/null and b/docs/image/Units/WEIGHT.png differ diff --git a/docs/image/Units/WEIGHT_user.gif b/docs/image/Units/WEIGHT_user.gif new file mode 100644 index 00000000..2895eda5 Binary files /dev/null and b/docs/image/Units/WEIGHT_user.gif differ diff --git a/docs/image/Units/joystick.png b/docs/image/Units/joystick.png new file mode 100644 index 00000000..464753fb Binary files /dev/null and b/docs/image/Units/joystick.png differ diff --git a/docs/image/Units/joystick_user.gif b/docs/image/Units/joystick_user.gif new file mode 100644 index 00000000..fa7830c0 Binary files /dev/null and b/docs/image/Units/joystick_user.gif differ diff --git a/docs/zh_CN/module/stepmotor.md b/docs/zh_CN/module/stepmotor.md index 161e2815..0c59bbaa 100644 --- a/docs/zh_CN/module/stepmotor.md +++ b/docs/zh_CN/module/stepmotor.md @@ -104,40 +104,6 @@ while (Serial.available() > 0) { } ``` -```adrduino -/* - If Button A was pressed, - stepmotor will rotate back and forth at a time -*/ - -#include -#include - -#define STEPMOTOR_I2C_ADDR 0x70 - -// initialization -M5.begin(); -Wire.begin(); - -// Controlling Protocol: -// G XYZ F -SendCommand(STEPMOTOR_I2C_ADDR, "G1 X20Y20Z20 F500"); -SendCommand(STEPMOTOR_I2C_ADDR, "G1 X0Y0Z0 F400"); - -// Get Data from Module. -Wire.requestFrom(STEPMOTOR_I2C_ADDR, 1); -if (Wire.available() > 0) { - int u = Wire.read(); - if (u != 0) Serial.write(u); -} - -// Send Data to Module. -while (Serial.available() > 0) { - int inByte = Serial.read(); - SendByte(STEPMOTOR_I2C_ADDR, inByte); -} -``` - ### 2. UIFlow 想要探索最简单的 Step motor 编程驱动方式吗?快试试Blockly编程平台[UIFlow](flow.m5stack.com). diff --git a/docs/zh_CN/uiflow/FACES.md b/docs/zh_CN/uiflow/FACES.md new file mode 100644 index 00000000..a542dcb0 --- /dev/null +++ b/docs/zh_CN/uiflow/FACES.md @@ -0,0 +1,215 @@ +# Calculator +__________________________ + +#### 功能说明 + +> 数字输入 + +> + +>* __Get press string__ +返回键盘字符 + +>* __Get press button int value__ +返回键盘ASIIC值 + +>* __Clear press string__ +清空输入字符 + +>* __Delete press string last byte__ +删除最后输入的字节 + +>* __is new button pressed__ +按键按下返回真 + +#### Usage + +> 屏幕显示输入的数字 + +> + + +# Encoder +__________________________ + +#### 功能说明 + +> 读取编码器数值 + +> + +>* __Set LED pos color__ +设置指定的LED颜色 + +>* __Clear encode value to zero__ +编码器数值归零 + +>* __Get encode value__ +返回编码值 + +>* __Get encode direction__ +返回旋转方向 + +>* __is encode pressed__ +编码器旋钮被按下返回真 + +#### Usage + +> 屏幕显示编码器数值,按下旋钮归零 + +> + + +# FINGER +__________________________ + +#### 功能说明 + +> 读取指纹信息 + +> + +>* __get state__ +返回传感器状态 + +>* __get access__ +返回用户权限 + +>* __get id__ +返回ID + +>* __remove All__ +移除所有指纹信息 + +>* __remove faces_finger id__ +移除指定指纹ID + +>* __faces_finger add user id access__ +添加指纹信息 + +>* __faces_finger read user with id access__ +验证指纹成功执行程序 + +>* __faces_finger getUnknow__ +读取未知指纹信息执行程序 + +#### Usage + +> 读取指纹信息,匹配亮绿灯不来匹配亮红灯 + +> + + +# GameBoy +__________________________ + +#### 功能说明 + +> 读取游戏键盘的键值 + +> + +>* __Get is press__ +返回按键状态,持续检测 + +>* __Get was pressed__ +返回按键状态,检测一次 + +#### Usage + +> 如果上键按下亮绿灯,下键按下亮红灯 + +> + + +# Joystick +__________________________ + +#### 功能说明 + +> 返回摇杆数据 + +> + +>* __Get X value__ +返回X轴方向数据 + +>* __Get Y value__ +返回Y轴方向数据 + +>* __Is pressed__ +按键按下返回真 + +>* __Get reverse X value__ +返回X轴反向数据 + +>* __Get reverse Y value__ +返回Y轴反向数据 + +>* __Set LED pos color__ +设置指定位置LED的颜色 + +#### Usage + +> 屏幕显示摇杆数据 + +> + + +# KeyBoard +__________________________ + +#### 功能说明 + +> 返回键盘按键数据 + +> + +>* __Get press string__ +返回按键字符 + +>* __Clear press string__ +清除输入字符 + +>* __Delete press string last byte__ +删除最后输入的字节 + +>* __Get press button int value__ +返回按键ASIIC值 + +>* __Is new button pressed__ +如果按键按下返回真 + +#### Usage + +> 屏幕显示输入的字符 + +> + + +# RFID +__________________________ + +#### 功能说明 + +> 返回RFID卡数据 + +> + +>* __read string from addr__ +从指定地址读取数据 + +>* __write to addr__ +向地址写数据 + +>* __card near__ +发现RFID卡靠近返回真 + +>* __card uid__ +返回RFID卡UID + +#### Usage + +> 屏幕显示RFID卡数据 + +> \ No newline at end of file diff --git a/docs/zh_CN/uiflow/Modules.md b/docs/zh_CN/uiflow/Modules.md new file mode 100644 index 00000000..8b20d4dc --- /dev/null +++ b/docs/zh_CN/uiflow/Modules.md @@ -0,0 +1,181 @@ +# LidarBOT +__________________________ + +#### 功能说明 + +> 雷达扫描导航小车,控制行走及灯光、显示地图 + +> + +>* __Lidarbot set with neopixel__ +设置雷达车led颜色 + +>* __Lidarbot set number with neopixel__ +单独设置led颜色 + +>* __Lidarbot Seed(0±7)__ +设置行走方向和速度 + +>* __Lidarbot set Motor Speed X(-7~7) Y(-7~7) Z(-7~7) A(-7~7)__ +设置X和Y方向电机速度和方向 + +>* __Lidarbot set Servo angle__ +设置舵机角度 + +>* __Lidarbot X axis speed(0±7)Y axis speed (0±7)__ +设置X和Y轴方向 + +>* __Lidarbot Draw Map__ +绘制雷达地图 + +>* __Lidarbot Get Distance__ +读取指定角度障碍距离 + +#### 使用方法 + +> 小车以3的速度向前走5秒停止 + +> + + +# STEPMOTOR +__________________________ + +#### 功能说明 + +> 步进电机控制 + +> + +>* __Motor Address__ +Module的I2C地址 + +>* __Motor X Y Z Speed__ +设置步进电机X轴Y轴Z轴转动步数和速度 + +>* __Put g code__ +运行G代码 + +>* __Set mode__ +设置电机运行模式,距离模式或相对值模式 + +>* __lock motor__ +锁定电机 + +>* __unlock motor__ +解锁电机 + + +#### 使用方法 + +>电机正反转交替运行 + +> + + +# SERVO +__________________________ + +#### 功能说明 + +> 舵机控制 + +> + +>* __Set servo rotate__ +设置指定舵机角度 + +>* __Set servo write us__ +设置舵机脉冲时间 + +#### 使用方法 + +>控制0-5号舵机旋转90度 + +> + + +# Bala Motor +__________________________ + +#### 功能说明 + +> 控制Bala编码电机运行 + +> + +>* __set rotate speed__ +设置电机转动方向和速度 + +>* __Run Speed__ +设定以某个速度朝运行方向行走一定脉冲数 + +>* __Go To Position MaxSpeed__ +以设定的速度运行500个脉冲 + +>* __Stop__ +电机停止 + +>* __Read encode__ +读取编码器数值 + + +#### 使用方法 + +> A键按下以255的速度向前行走500脉冲 + +> + + +# LEGO+ +__________________________ + +#### 功能说明 + +> 控制lego编码电机运行 + +> + +>* __Set rotate pwm__ +设置电机方向和转速 + +>* __Stop__ +电机停止 + +>* __Clear encode__ +编码器清零 + +>* __Read encode__ +读出编码器数据 + + +#### 使用方法 + +> 设定电机运行5秒钟停止 + +> + + +# PM2.5 +__________________________ + +#### 功能说明 + +> 灰尘颗粒物检测,输出浓度或数量 + +> + +>* __PM2.5 get value in__ +设置检测颗粒物直径与检测模式,返回检测结果 SPM为标准颗粒物浓度值 APM为大气环境颗粒物浓度值 + +>* __PM2.5 get particles above um number__ +返回指定直径的颗粒物含有数量 + + +#### 使用方法 + +> 屏幕显示PM2.5颗粒物数量 + +> + + diff --git a/docs/zh_CN/uiflow/Units.md b/docs/zh_CN/uiflow/Units.md new file mode 100644 index 00000000..461a891d --- /dev/null +++ b/docs/zh_CN/uiflow/Units.md @@ -0,0 +1,675 @@ +# ENV +__________________________ + +#### 功能说明 + +>单总线接口传感器,获取周围的温度、湿度、气压 + +> + +>* __Get Pressure__ +获取气压,单位为百帕(hpa) + +>* __Get Temperature__ +获取温度,显示小数点后两位 + +>* __Get Humidity__ +获取湿度 + + +#### 使用方法 + +>在屏幕上显示气压、温度、湿度 + +> + + +# PIR +__________________________ + +#### 功能说明 + +>I/O类传感器,检测人体或动物发出的红外线信号 + +> + +#### 使用方法 + +>检查是否有人靠近,有人靠近亮红灯 + +> + +# RGB LED +__________________________ + +#### 功能说明 + +>控制一定数量的彩色LED发光 + +> + +>* __Set index RGB color__ +设置指定序号的灯的颜色 + +>* __Set from to RGB color__ +设置指定范围内灯的颜色 + +>* __Set from to R G B__ +将指定范围内灯的颜色设置为自定义颜色 + +>* __Set all RGB color__ +设置全部RGB灯的颜色 + +>* __Set brightness__ +设置灯的亮度 + +>* __Set neopixel hexagon matrix in__ +在HEX上设置图案并指定颜色 + +>* __et neopixel hexagon matrix in red green blue__ +在HEX上设置图案并自定义颜色 + + +#### 使用方法 + +> 绘制一个图案 + +> + + +# joystick +__________________________ + +#### 功能说明 + +>摇杆其实是一个可以自动复位的电位器,滑动不同的位移输出不同的电压信号 + +> + +>* __Get X__ +返回X轴的数据 + +>* __Get Y__ +返回Y轴的数据 + +>* __Get is pressed__ +返回按键的值 + +>* __Get Reverse X__ +返回X轴反向数据 + +>* __Get Reverse Y__ +返回Y轴反向数据 + +#### 使用方法 + +>通过摇杆方向控制RGB LED的颜色 + +> + +# MAKEY +__________________________ + +#### 功能说明 + +>简单的触摸应用,通过触摸不同的引脚,可以发出不同的音调和灯光 + +> + +>* __Get value__ +返回引脚值 + +>* __Get all value__ +返回所有引脚值 + +#### 使用方法 + +>触摸不同引脚得到不同的值显示不同颜色 + +> + +# SERVO +________________________ + +#### 功能说明 + +>舵机是一种常见的驱动装置,它的旋转角度依靠脉冲控制 + +> + +>* __rotate to degree__ +设置旋转角度 + +>* __write us__ +设置脉冲时间 + +#### 使用方法 + +>控制舵机旋转90度 + +> + +# WEIGHT +________________________ + +#### 功能说明 + +>HX711是一种为电子秤设计的高精度的AD转换芯片,通过读取电压值转化为相应的重量 + +> + +>* __return to zero__ +归零 + +>* __Get weight__ +返回重量 + +>* __Get raw data__ +返回原始数据 + +#### 使用方法 + +>读取重量显示到屏幕,按下A键归零 + +> + +# TRACE +________________________ + +#### 功能说明 + +>TRACE是小车巡线的常用传感器,通过接收反射光判断是否有黑线 + +> + +>* __Get analog value__ +返回模拟量 + +>* __Get digital value__ +返回数字量 + +>* __set limit should value__ +设置限定值 + +#### 使用方法 + +>传感器接受到反射光发白光,没有接受到不发光 + +> + + +# BUTTON +________________________ + +#### 功能说明 + +>检测按键不同状态,执行相应操作 + +> + +>* __Button wasPressed__ +按键按下执行设定的函数 + +>* __obtain button wasPressed__ +检查按键是否按下,执行中只获取一次 + +#### 使用方法 + +> 按键按下闪一次灯 + +> + + +# Dual-BUTTON +________________________ + +#### 功能说明 + +>检测按键不同状态,执行相应操作 + +> + +>* __Dual_Button Red wasPressed__ +红色按键按下执行设定的函数 + +>* __obtain dual button Red wasPressed__ +检查红色按键是否按下,执行中只获取一次 + +#### 使用方法 + +> 红色按键按下亮红灯,蓝色按键按下灭灯 + +> + + +# RGB +________________________ + +#### 功能说明 + +>RGB三色led指示灯 + +> + +>* __Set index RGB color__ +指定某个序号灯的颜色 + +>* __Set form to RGB color__ +设置多个灯的颜色 + +>* __Set all RGB color__ +设置所有RGB的颜色 + +>* __Set brightness__ +设置RGB的亮度 + +#### 使用方法 + +> 设置灯的颜色 + +> + + +# REALY +________________________ + +#### 功能说明 + +>通过控制继电器开合达到弱电控制强电的目的 + +> + +>* __set COM connect ON__ +控制继电器闭合 + +>* __set COM connect OFF__ +控制继电器断开 + +#### 使用方法 + +> 按下A按键继电器闭合,按下B按键继电器断开 + +> + + +# ADC +________________________ + +#### 功能说明 + +>直接读取AD数值 + +> + +>* __read voltage__ +读取电压 + +#### 使用方法 + +> 显示AD数值 + +> + + +# DAC +________________________ + +#### 功能说明 + +>进行DA转换并输出电压,最大3.7V + +> + +>* __output voltage save__ +输出电压0-3.3,并确认是否保存到EEPROM + +>* __output voltage with raw data save__ +输出电压0-4096,并确认是否保存到EEPROM + +#### 使用方法 + +> 输出电压 + +> + + +# NCIR +________________________ + +#### 功能说明 + +>非接触式温度测量,直接读取数据 + +> + +>* __ncir read__ +读取温度 + +#### 使用方法 + +> 屏幕显示温度 + +> + + +# IR +________________________ + +#### 功能说明 + +>发射或者接受红外遥控信号 + +> + +>* __state__ +接受到红外信号返回1 + +>* __set on__ +发送红外信号 + +>* __set off__ +停止发送 + +#### 使用方法 + +> 接收红外信号亮红灯 + +> + + +# EXT.IO +________________________ + +#### 功能说明 + +>通过I2C拓展IO接口,读写电平操作 + +> + +>* __set mode__ +全部引脚设置为输入或输出模式 + +>* __set pin mode__ +单独设置输入或输出 + +>* __digitWrite Port__ +控制引脚状态,每个引脚对应1位 + +>* __digitWrite Pin__ +单独控制引脚状态 + +>* __digitRead Pin__ +读取指定引脚状态 + +>* __digitRead Port__ +读取全部引脚状态 + +#### 使用方法 + +> 清除所有引脚状态,设置2引脚高电平 + +> + + +# ANGLE +________________________ + +#### 功能说明 + +>读取旋钮电位器的输出数值 + +> + +>* __Get value__ +返回电位器数值 + +#### 使用方法 + +> 控制RGB LED的亮度 + +> + +# LIGHT +________________________ + +#### 功能说明 + +> 返回光线测量值 + +> + +>* __Get Analog value__ +返回模拟值 + +>* __Get Digital value__ +返回数字值 + +#### 使用方法 + +> 作为开关控制LED亮灭 + +> + + +# EARTH +________________________ + +#### 功能说明 + +> 测量土壤湿度 + +> + +>* __Get Analog value__ +返回模拟值 + +>* __Get Digital value__ +返回数字值 + +#### 使用方法 + +> 土壤干燥时LED报警 + +> + + +# TOF +________________________ + +#### 功能说明 + +> 测量距离最大量程2米 + +> + +>* __Get distance__ +返回距离mm + +#### 使用方法 + +> 显示距离 + +> + + +# COLOR +________________________ + +#### 功能说明 + +> 识别颜色,返回RGB数值 + +> + +>* __Get rawData__ +返回原始数据 + +>* __Get red__ +返回红色值 + +>* __Get green__ +返回绿色值 + +>* __Get blue__ +返回蓝色值 + +#### 使用方法 + +> 检测颜色显示对应颜色的RGB灯 + +> + + +# RFID +________________________ + +#### 功能说明 + +> 识别RFID芯片信息 + +> + +>* __read string from addr__ +从地址读取数据 + +>* __write to addr__ +向地址写入数据 + +>* __card near__ +RFID卡片靠近返回1 + +>* __card uid__ +返回RFID卡片的UID + +#### 使用方法 + +> 识别RFID卡片信息 + +> + + +# FINGER +________________________ + +#### 功能说明 + +> 识别指纹信息 + +> + +>* __get state__ +读取传感器状态 + +>* __get access__ +返回访问权限 + +>* __get id__ +返回ID + +>* __removeAll__ +移除所有指纹信息 + +>* __remove id__ +移出指纹ID + +>* __add user id access__ +添加ID和访问权限 + +>* __read user with id access__ +id及权限匹配则执行以下操作 + +>* __getUnknown__ +未知的id及权限执行以下操作 + +#### 使用方法 + +> 录制指纹并进行识别,识别成功亮绿灯 + +> + + +# CardKB +________________________ + +#### 功能说明 + +> 通过键盘输入信息 + +> + +>* __Get key__ +返回ASIIC数值 + +>* __Get string__ +返回字符 + +>* __Get pressed__ +检测按键,按下返回真 + +#### 使用方法 + +> 屏幕显示输入字符 + +> + + +# Pb.HUB +________________________ + +#### 功能说明 + +> 扩展IO接口 + +> + +>* __pos digitalRead__ +读取引脚数字值 + +>* __pos digitalWrite value__ +向引脚写入数字值 + +>* __analogRead__ +读取模拟值 + +>* __Set pos RGB number to__ +设置引脚RGB灯珠数量 + +>* __Set pos num RGB pos color__ +设置指定序号RGB灯珠的颜色 + +>* __Set pos num RGB begin count color__ +设置指定范围内RGB灯珠颜色 + +>* __Set pos RGB brightness__ +设置指定引脚RGB灯珠亮度 + +#### 使用方法 + +> 通过Pb.HUB控制10个RGB灯 + +> + + +# Pa.HUB +________________________ + +#### 功能说明 + +> 扩展I2C接口 + +> + +>* __set pos state__ +设置指定端口I2C + +>* __set pos open__ +设置端口开启I2C + +>* __set port value__ +设置端口I2C + +#### 使用方法 + +> 通过Pa.HUB控制扫描I2C设备,A键开启扩展,B键关闭扩展 + +> \ No newline at end of file diff --git a/docs/zh_CN/uiflow/uiflow_home_page.md b/docs/zh_CN/uiflow/uiflow_home_page.md index c214e2cc..86618a07 100644 --- a/docs/zh_CN/uiflow/uiflow_home_page.md +++ b/docs/zh_CN/uiflow/uiflow_home_page.md @@ -51,24 +51,26 @@ - - + + +