mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
release ATOM SPK and update some info
This commit is contained in:
@@ -70,7 +70,7 @@ Be care about TTL Interface. It is a UART Interface actually by default. But you
|
||||
|
||||
## PinMap
|
||||
|
||||
| *CAN* | *ESP32 Chip* |
|
||||
| *MCP2515* | *ESP32 Chip* |
|
||||
| :----------: |:------------: |
|
||||
| CAN_CS | GPIO12 |
|
||||
| CAN_INT | GPIO15 |
|
||||
@@ -81,8 +81,8 @@ Be care about TTL Interface. It is a UART Interface actually by default. But you
|
||||
|
||||
| *I2C Interface* | *ESP32 Chip* |
|
||||
| :--------------: |:------------: |
|
||||
| IIC_SDA | GPIO21 |
|
||||
| IIC_SCL | GPIO22 |
|
||||
| I2C_SDA | GPIO21 |
|
||||
| I2C_SCL | GPIO22 |
|
||||
|
||||
|
||||
## MBUS PinMap
|
||||
|
||||
@@ -89,7 +89,7 @@ The series communication protocol between M5 core and ENCODER is I2C (The defaul
|
||||
|
||||
**Control single RGB**
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
/*
|
||||
Parameter:
|
||||
led_index: 0 ~ 11
|
||||
@@ -108,7 +108,7 @@ void Led(int led_index, int r, int g, int b){
|
||||
|
||||
**Read encoder increment**
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
void get_encoder_increment(void){
|
||||
int temp_encoder_increment;
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ To the complete code `faces_joystick.ino`, click [here](https://github.com/m5sta
|
||||
|
||||
**Control single RGB**
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
/*
|
||||
Parameter:
|
||||
indexOfLED: 0 ~ 11
|
||||
@@ -103,7 +103,7 @@ void Led(int indexOfLED, int r, int g, int b){
|
||||
|
||||
**Read the offset of each direction**
|
||||
|
||||
```arduino
|
||||
```clike
|
||||
void get_joystick_offset(void){
|
||||
Wire.requestFrom(FACE_JOY_ADDR, 5);
|
||||
if (Wire.available()) {
|
||||
|
||||
Reference in New Issue
Block a user