fix syntax highlihgt

This commit is contained in:
塩入孔章
2018-12-26 11:03:01 +08:00
parent 763ac3292d
commit 842a1f66fd
63 changed files with 132 additions and 133 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ Return:
digital level(0/1)
**Example**
```c++
```arduino
uint32_t pin21_data;
pin21_data = digitalRead(21);
```
+1 -1
View File
@@ -10,6 +10,6 @@ Set the pitch of speaker.
| freq | <code>uint32_t</code> | frequency |
**Example**
```c++
```arduino
M5.Speaker.tone(100);
```
+1 -1
View File
@@ -46,7 +46,7 @@ account the distance, anti-interference and power consumption
?> **Note** If your board LCD can't display or has some other problem, we suggest
you to add the two statements code followed by ``m5.begin();`` as shown
below
```cpp
```arduino
pinMode(5,OUTPUT);
digitalWrite(5,HIGH);
m5.begin();
+1 -1
View File
@@ -41,7 +41,7 @@ Servo is communicated with M5Core through GROVE interface(I2C communication). Th
### 1. Arduino IDE
```c++
```arduino
#define SERVO_ADDR 0x53 //the IIC address of SERVO Module
/*
* control servo(CH channle) by us
+1 -1
View File
@@ -66,7 +66,7 @@ your own.npm i docsify-cli -g
Here's a example using SIM800 for sending SMS
```c++
```arduino
/*
* Master.ino
*/
@@ -77,7 +77,7 @@ Open Arduino IDE, then new a `.ino` file, rename it as `my_test.ino`
Copy the below code to my_test.ino
```cpp
```arduino
#include <M5Stack.h>
// the setup routine runs once when M5Stack starts up
+1 -1
View File
@@ -35,7 +35,7 @@ This is a unit having self-calibrating function and 16bit analog-to-digitial cov
## Example
```c++
```arduino
ADS1100 ads;//new a object
ads.getAddr_ADS1100(0x48);//ADS1100_DEFAULT_ADDRESS: 0x48
+1 -1
View File
@@ -26,7 +26,7 @@ angle.
### 1. Arduino IDE
```c++
```arduino
#include <M5Stack.h>
// select the input pin for the potentiometer
int sensorPin = 36;
+1 -1
View File
@@ -23,7 +23,7 @@ The Unit BUTTON is a sigle-button unit that can be detected whether the button p
## Example
```c++
```arduino
float tmp = dht12.readTemperature();//temperature
float hum = dht12.readHumidity();//humidity
float pressure = bme.readPressure();//pressure
+1 -1
View File
@@ -33,7 +33,7 @@ This is a unit can detecte the color of object surface which integrates TCS3472
## Example
### 1. Arduino IDE
```c++
```arduino
Adafruit_TCS34725 tcs;
tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X);
+1 -1
View File
@@ -33,7 +33,7 @@ This is a unit can convert digital signal to analog signal like voltage waveform
## Example
### 1. Arduino IDE
<!--
```c++
```arduino
/*
hardware : m5stack uint dac
please install adafruit MCP4725 lib
+1 -1
View File
@@ -27,7 +27,7 @@ You can read the moisture in soil staright or get a digital signal(0/1) that mea
## Example
### 1. Arduino IDE
```c++
```arduino
//disable the speak noise
dacWrite(25, 0);
+1 -1
View File
@@ -35,7 +35,7 @@ temperature and humidity sensor and absolute barometric pressure sensor. Connect
## Example
```c++
```arduino
float tmp = dht12.readTemperature();//temperature
float hum = dht12.readHumidity();//humidity
float pressure = bme.readPressure();//pressure
+1 -1
View File
@@ -64,7 +64,7 @@ The ESP32Cam equips the ESP32 with everything necessary to program, run and deve
## Example
<!-- ```c++
<!-- ```arduino
float tmp = dht12.readTemperature();//temperature
float hum = dht12.readHumidity();//humidity
float pressure = bme.readPressure();//pressure
+1 -1
View File
@@ -35,7 +35,7 @@ same time signal output interface to output digital signal.
### 1. Arduino IDE
```c++
```arduino
#include <M5Stack.h>
// select the input pin for the potentiometer
int ir_recv_pin = 36;
+1 -1
View File
@@ -25,7 +25,7 @@ This Unit is a joystick unit the same as game controller button that can be dete
### 1. Arduino IDE
```c++
```arduino
#define JOY_ADDR 0x52
//disable the speak noise
+1 -1
View File
@@ -29,7 +29,7 @@ You can read analog signal(lightironmental light intensity) staright or get a di
### 1. Arduino IDE
```c++
```arduino
//disable the speak noise
dacWrite(25, 0);
+1 -1
View File
@@ -64,7 +64,7 @@ The M5Camera equips the ESP32 with everything necessary to program, run and deve
## Example
<!-- ```c++
<!-- ```arduino
float tmp = dht12.readTemperature();//temperature
float hum = dht12.readHumidity();//humidity
float pressure = bme.readPressure();//pressure
+1 -1
View File
@@ -31,7 +31,7 @@ The Unit makey is a makey unit with 16 touchable pins.The Unit makey is based on
## Example
<!-- ```c++
<!-- ```arduino
float tmp = dht12.readTemperature();//temperature
float hum = dht12.readHumidity();//humidity
float pressure = bme.readPressure();//pressure
+1 -1
View File
@@ -32,7 +32,7 @@ This is a unit can measure body temperature or be applicated for movement detect
## Example
<!-- ```c++
<!-- ```arduino
float tmp = dht12.readTemperature();//temperature
float hum = dht12.readHumidity();//humidity
float pressure = bme.readPressure();//pressure

Some files were not shown because too many files have changed in this diff Show More