mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
add M5StickV firmware WS2812 example code
This commit is contained in:
Regular → Executable
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 39 KiB |
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
@@ -8,12 +8,12 @@
|
||||
|
||||
**485T**,This is a T-shape connector for RS485 communication, which can apply to point to point, one point to multi-point connection, plus a POWER LED for indication. The terminal connector specification is 4pin HT3.96. Many M5 products sharing this type of connector, such as PLC, Base26, HAT-RS485, etc.
|
||||
|
||||
## Product Feature
|
||||
## Product Features
|
||||
|
||||
- Interface type: 4 Pin 3.96mm terminal block
|
||||
- Built-in power indicator: red
|
||||
|
||||
## Package Include
|
||||
## Include
|
||||
|
||||
- 1x 485T
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
- 90-degree bend pin
|
||||
- 2x15 @ 2.54mm
|
||||
|
||||
## Package Includes
|
||||
## Includes
|
||||
- 1x male socket
|
||||
- 1x female socket
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**CONNEXT Cable** would be a necessary tool used on M5Stack development, since all PORTs on M5Core are CONNEXT stadard. This CONNEXT cable, compatible with the CONNEXT port on M5Core,simply have 4 lines, two for data, one for power,and one for Ground. We've offered alternative length: 10cm, 20cm, 50cm, 1m, 2m.
|
||||
|
||||
## Feature
|
||||
## Product Features
|
||||
|
||||
- 5 specifications: 10cm, 20cm, 0.5m, 1m, 2m
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**LEGO Cable** is used for LEGO motor which is compatible with BALA and M5Module LEGO+. We have prepared different length to fit your needs on different appliactions.
|
||||
|
||||
## Feature
|
||||
## Product Features
|
||||
|
||||
- 3 specifications: 10cm, 20cm, 30cm
|
||||
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
|
||||
**GROVE2GROVE** is a GROVE extension connector. Two female GROVE port sit back-to-back. One common use of this part is for the RGB LED strip extension.
|
||||
|
||||
## Product Features
|
||||
## Product Features
|
||||
- Grove connector
|
||||
|
||||
## Package Includes
|
||||
## Include
|
||||
- 5x pcs
|
||||
|
||||
<script>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<<<<<<< HEAD
|
||||
|
||||
# Accessory Frame
|
||||
|
||||
<div class="badge badge-pill badge-primary product_sku_tag">SKU:A013</div>
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
|
||||
As time goes by, the screen surface and buttons of the M5Core may be filled with various scratches and abrasions. In addition to providing a better visual experience, the replacement of the new external screen is also a protective measure for the screen.
|
||||
|
||||
## Product Feature
|
||||
## Product Features
|
||||
|
||||
- External screen material: Acrylic (acrylic material)
|
||||
|
||||
## Package Includes
|
||||
## Include
|
||||
|
||||
- 1x M5Core Acrylic external screen
|
||||
- 1x M1.5 hex wrench
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<<<<<<< HEAD
|
||||
|
||||
# Accessory SCREW
|
||||
|
||||
<div class="badge badge-pill badge-primary product_sku_tag">SKU:A050</div>
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
**SCREW** would be a necessary tool used on M5Stack development. If you having multiple layers stacked up and you might want fix them up with something. Here comes this SCREW Accessory Kit, packed with 4 different length of M3 screws and an Allen Key. Got this sutff will definately help you making more complicated and organized work around M5Stack.
|
||||
|
||||
## Product Features
|
||||
## Product Features
|
||||
|
||||
- Specification:
|
||||
- 2x M3-12
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
- Product size: 127mm x 69mm x 23mm
|
||||
- Product weight: 87g
|
||||
|
||||
## Package Includes
|
||||
## Include
|
||||
|
||||
- 1x strap base
|
||||
- 1x 700mAh battery
|
||||
|
||||
@@ -71,7 +71,7 @@ Let's break it down a little bit, start with the bottom part.
|
||||
<a>
|
||||
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
|
||||
<p>Description:</p>
|
||||
<p>Control power on / off.</p>
|
||||
<p>Press B to turn on the power and a to turn off the power.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -22,7 +22,7 @@ The lego holes on bottom board allow you to place more M5 sensors for extension
|
||||
|
||||
<img src="assets\img\product_pics\app\m5scale_diy_kit\m5scale_diy_kit_02.webp" width="30%" height="30%">
|
||||
|
||||
## Product Feature
|
||||
## Product Features
|
||||
|
||||
- Dimension :
|
||||
- Finish Assembly:100mm * 100mm * 43mm
|
||||
@@ -38,7 +38,7 @@ The lego holes on bottom board allow you to place more M5 sensors for extension
|
||||
- Output sensitivity: 1.0±0.1mV/V
|
||||
- Lead wire: power line (red), signal positive (white), signal negative (green), ground wire (black)
|
||||
|
||||
## Package Includes
|
||||
## Include
|
||||
|
||||
- 1x M5SCALE DIY Kit
|
||||
- 1x User Manual
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
# Tail485
|
||||
|
||||
<div class="badge badge-pill badge-primary product_sku_tag">SKU:</div>
|
||||
|
||||
<div class="product_pic"><img src="assets/img/product_pics/atom_base/Tail485/Tail485.webp"></div>
|
||||
|
||||
## Description
|
||||
|
||||
**Tail485** is a TTL-RS485 converter designed for ATOM, which is used for TTL level and RS485 level conversion. RRS485 is a standard defining the electrical characteristics of drivers and receivers for use in serial communications systems, widely used in industrial field. multipoint systems are supported. When the project equipment needs to communicate and control through RS485, it is a good choice to use RS485 unit for interface type switching. In tail485, a DC / DC voltage regulator chip is integrated, which can directly convert the 12V voltage of RS485 to 5V to supply power for typec interface, avoiding the trouble of separate power supply.
|
||||
|
||||
## Product Features
|
||||
|
||||
- Adapt to ATOM
|
||||
- Built in DC / DC
|
||||
- SP485EEN-L
|
||||
|
||||
## Inclued
|
||||
|
||||
- 1x Tail485
|
||||
|
||||
## Application
|
||||
|
||||
- RS485 Multipoint communication
|
||||
|
||||
## Specification
|
||||
|
||||
<table class="table-1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Specification</th>
|
||||
<th>Parameter</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>External port</td>
|
||||
<td>VH-3.96 4P</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Conversion level</td>
|
||||
<td>5V<->12V</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Line Transceiver IC</td>
|
||||
<td>SP485EEN-L</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Step-down IC</td>
|
||||
<td>AOZ1282CI</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Size</td>
|
||||
<td>30 x 24 x 9mm</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Weight</td>
|
||||
<td>6g</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Case material</td>
|
||||
<td>Plastic ( PC )</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
## EasyLoader
|
||||
|
||||
>EasyLoader is a concise and fast program writer, which has a built-in case program related to the product. It can be burned to the main control by simple steps to perform a series of function verification.
|
||||
|
||||
<div class="easyloader-box">
|
||||
<div style="background-color:white;">
|
||||
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
|
||||
<div class="easyloader-btn">
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Windows/MODULE/EasyLoader_COMMU_MODULE.exe">Windows</a>
|
||||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/MODULE/EasyLoader_COMMU_MODULE.dmg">MacOS</a>
|
||||
<!-- <a>Linux</a>
|
||||
<a>MacOS</a> -->
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<video id="example_video" controls>
|
||||
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Module/COMMU.mp4" type="video/mp4">
|
||||
</video>
|
||||
<div class="easyloader-mask">
|
||||
<a>
|
||||
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
|
||||
<p>Description:</p>
|
||||
<p>Communicate through RS485 and send data.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
## Example
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
The code below is incomplete. To get complete code, please click [here](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/RS485)
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var purchase_link = 'https://m5stack.com/collections/all/products/tail485';
|
||||
|
||||
anchor_search(purchase_link);
|
||||
scrollFunc();
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,90 @@
|
||||
# TailBat
|
||||
|
||||
<div class="badge badge-pill badge-primary product_sku_tag">SKU:</div>
|
||||
|
||||
<div class="product_pic"><img src="assets/img/product_pics/atom_base/TailBat/TailBat.webp"></div>
|
||||
|
||||
## Description
|
||||
|
||||
**TailBat** is an external battery accessory designed for ATOM. Inserting the tail of atom can directly supply power for ATOM, which is convenient for users to use in mobile scenes. There is a switch button on the front of TailBat, which contains 190mah battery inside. It is controlled by the power management chip IP5303. When the power is turned on, the red indicator light is on. The operation method is the same as that of m5stack core: Click to turn on the power, double-click to turn off the power. Because tailbat has made a straight through design for the interface on the basis of adding batteries, it will not affect the original GROVE Connection mode and USB function. The built-in battery can only be charged through the typec interface, not through the grove interface.
|
||||
|
||||
## Product Features
|
||||
|
||||
- Adapt to ATOM
|
||||
- Plug and play
|
||||
- Built in rechargeable lithium battery
|
||||
- LED indicator
|
||||
- Stick/C/V/M5Camera compatible
|
||||
|
||||
|
||||
## Include
|
||||
|
||||
- 1x TailBat
|
||||
|
||||
## Application
|
||||
|
||||
- ATOM portable power
|
||||
|
||||
## Specification
|
||||
|
||||
<table class="table-1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Specification</th>
|
||||
<th>Parameter</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>External port</td>
|
||||
<td>1x GROVE </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>LED</td>
|
||||
<td>1x RED LED</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>USB port</td>
|
||||
<td>TypeC</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Battery capacity</td>
|
||||
<td>190mAh</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Size</td>
|
||||
<td>55 x 22 x 14mm</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Weight</td>
|
||||
<td>42g</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Case material</td>
|
||||
<td>Plastic ( PC )</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
## Schematic
|
||||
|
||||
|
||||
|
||||
## Video
|
||||
|
||||
<video class="video_size" controls>
|
||||
<source src="/" type="video/mp4">
|
||||
</video>
|
||||
|
||||
<script>
|
||||
|
||||
var purchase_link = 'https://m5stack.com/collections/all/products/tailbat';
|
||||
|
||||
|
||||
var quickstart_link = '';
|
||||
|
||||
anchor_search(purchase_link);
|
||||
scrollFunc();
|
||||
|
||||
</script>
|
||||
|
||||
@@ -17,7 +17,7 @@ At the bottom side of the product, we have offered 2 different fitting ways: Di
|
||||
Of course, it is absolutely compatible with the stackable M5module and extendable M5Units.
|
||||
This base gives you an unlimited of combinations, it is powerful, flexible, and covered with an industrial-grade case. If you happen to work in an industrial field, We especially recommend this Base to you which will surely give you the best and the fastest way to resolve your requirement..
|
||||
|
||||
## Feature
|
||||
## Product Features
|
||||
|
||||
- Highly Customizable
|
||||
- Alternative parts
|
||||
|
||||
@@ -18,7 +18,7 @@ At the bottom side of the product, we have offered 2 different fitting ways: Di
|
||||
Of course, it is absolutely compatible with the stackable M5module and extendable M5Units.
|
||||
This base gives you an unlimited of combinations, it is powerful, flexible, and covered with an industrial-grade case. If you happen to work in an industrial field, We especially recommend this Base to you which will surely give you the best and the fastest way to resolve your requirement..
|
||||
|
||||
## Feature
|
||||
## Product Features
|
||||
|
||||
- Highly Customizable
|
||||
- Alternative parts
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
**BaseX** is a special base compatible with LEGO EV3 motor. The structure design is similar to base26, supporting multiple ways of fixation, and an additional LEGO connection base is provided. When building the LEGO structure, Basex can be easily embedded in the work. Basex can be connected to 4-way (RJ11) LEGO motor at the same time, supporting angle / speed reading and control, and perfectly compatible with the original motor functions. In addition, the base provides two servo interfaces, which can directly control the rotation angle of the servo.There is a motherboard PDM microphone for sound collection. In order to adapt to different use scenarios, a UART interface (16 / 17) and a GPIO interface (26 / 36) are provided to make access to various sensors more flexible. A 900mah battery is built in the base, which can be charged through the usb-c interface of m5core to extend the endurance. In order to improve the driving ability of the interface, the base is equipped with a DC power socket, which can be powered by an external 9-12v power supply to provide a stable power supply for the motor.
|
||||
|
||||
## Feature
|
||||
## Product Features
|
||||
|
||||
- 4-way RJ11 LEGO motor interface (total maximum output current 2A)
|
||||
- 2-way servo interface (total maximum output current 2A)
|
||||
@@ -77,7 +77,7 @@ Mode config method: Motor address + nByte
|
||||
<tr><td>Encoder</td><td>0x02</td>
|
||||
</table>
|
||||
|
||||
## Product
|
||||
## Include
|
||||
|
||||
- 1x BaseX
|
||||
- 1x LEGO base
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
|
||||
<img src="assets/img/product_pics/base/core_base_01.webp" width="40%" height="40%"><img src="assets/img/product_pics/base/core_base_04.webp" width="40%" height="40%">
|
||||
|
||||
## Include
|
||||
|
||||
- 1x Core BOTTOM
|
||||
|
||||
## Product Features
|
||||
|
||||
- Li-po battery: 110 mAh @ 3.7V
|
||||
|
||||
## Include
|
||||
|
||||
- 1x Core BOTTOM
|
||||
|
||||
**M-Bus**
|
||||
|
||||
<img src="assets/img/product_pics/core/M-BUS.webp" alt="M_BUS" width="60%" height="36%">
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user