This commit is contained in:
LiHuashen
2019-03-01 18:57:09 +08:00
parent 33f856dd97
commit c6be20e879
28 changed files with 92 additions and 188 deletions
+4 -12
View File
@@ -8,9 +8,7 @@
**構文:**
```arduino
uint8_t read();
```
<mark>uint8_t read();</mark>
**使用例:**
@@ -36,9 +34,7 @@ void loop() {
**構文:**
```arduino
uint8_t isPressed();
```
<mark>uint8_t isPressed();</mark>
**使用例:**
@@ -64,9 +60,7 @@ void loop() {
**構文:**
```arduino
uint8_t wasPressed();
```
<mark>uint8_t wasPressed();</mark>
**説明:**
@@ -96,9 +90,7 @@ void loop() {
**構文:**
```arduino
uint8_t pressedFor(uint32_t ms);
```
<mark>uint8_t pressedFor(uint32_t ms);</mark>
**説明:**
+11 -33
View File
@@ -10,9 +10,7 @@
**構文:**
```arduino
fillScreen(uint16_t color);
```
<mark>fillScreen(uint16_t color);</mark>
| 引数 | 説明 | 型 |
| --- | --- | -- |
@@ -35,9 +33,7 @@ M5.Lcd.fillScreen(RED);
**構文:**
```arduino
setTextColor(uint16_t color, [uint16_t backgroundcolor]);
```
<mark>setTextColor(uint16_t color, [uint16_t backgroundcolor]);</mark>
| 引数 | 説明 | 型 |
| --- | --- | -- |
@@ -61,9 +57,7 @@ M5.Lcd.setTextColor(RED);
**構文:**
```arduino
setCursor(uint16_t x, uint16_t y);
```
<mark>setCursor(uint16_t x, uint16_t y);</mark>
| 引数 | 説明 | 型 |
| --- | --- | -- |
@@ -88,9 +82,7 @@ M5.Lcd.print("Hello");
**構文:**
```arduino
drawPixel(int16_t x, int16_t y, [uint16_t color]);
```
<mark>drawPixel(int16_t x, int16_t y, [uint16_t color]);</mark>
| 引数 | 説明 | 型 |
| --- | --- | -- |
@@ -115,9 +107,7 @@ M5.Lcd.drawPixel(22, 22, RED);
**構文:**
```arduino
drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, [uint16_t color]);
```
<mark>drawLine(int16_t x0, int16_t y0, int16_t x1, int16_t y1, [uint16_t color]);</mark>
| 引数 | 説明 | 型 |
| --- | --- | -- |
@@ -144,9 +134,7 @@ M5.Lcd.drawLine(0, 0, 12, 12, WHITE);
**構文:**
```arduino
drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, [uint16_t color]);
```
<mark>drawTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, [uint16_t color]);</mark>
| 引数 | 説明 | 型 |
| --- | --- | -- |
@@ -175,9 +163,7 @@ M5.Lcd.drawTriangle(22, 22, 69, 98, 51, 22, RED);
**構文:**
```arduino
fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, [uint16_t color]);
```
<mark>fillTriangle(int16_t x0, int16_t y0, int16_t x1, int16_t y1, int16_t x2, int16_t y2, [uint16_t color]);</mark>
| 引数 | 説明 | 型 |
| --- | --- | -- |
@@ -206,9 +192,7 @@ M5.Lcd.fillTriangle(22, 22, 69, 98, 51, 22, RED);
**構文:**
```arduino
drawRect(int16_t x, int16_t y, int16_t w, int16_t h, [uint16_t color]);
```
<mark>drawRect(int16_t x, int16_t y, int16_t w, int16_t h, [uint16_t color]);</mark>
| 引数 | 説明 | 型 |
| --- | --- | -- |
@@ -235,9 +219,7 @@ M5.Lcd.drawRect(180, 12, 122, 10, BLUE);
**構文:**
```arduino
fillRect(int16_t x, int16_t y, int16_t w, int16_t h, [uint16_t color]);
```
<mark>fillRect(int16_t x, int16_t y, int16_t w, int16_t h, [uint16_t color]);</mark>
| 引数 | 説明 | 型 |
| --- | --- | -- |
@@ -264,9 +246,7 @@ M5.Lcd.fillRect(180, 12, 122, 10, BLUE);
**構文:**
```arduino
drawRoundRect(int16_t x, int16_t y, int16_t w, int16_t h, int16_t r, [uint16_t color]);
```
<mark>drawRoundRect(int16_t x, int16_t y, int16_t w, int16_t h, int16_t r, [uint16_t color]);</mark>
| 引数 | 説明 | 型 |
| --- | --- | -- |
@@ -294,9 +274,7 @@ M5.Lcd.fillRoundRect(180, 70, 122, 10, 4, BLUE);
**構文:**
```arduino
print("表示する文字列");
```
<mark>print("表示する文字列");</mark>
**使用例:**
+6 -18
View File
@@ -6,9 +6,7 @@
**構文:**
```arduino
void initMPU9250();
```
<mark>void initMPU9250();</mark>
**説明:**
@@ -36,9 +34,7 @@ void loop() {
**構文:**
```arduino
void initAK8963(float * destination);
```
<mark>void initAK8963(float * destination);</mark>
**説明:**
@@ -82,9 +78,7 @@ void loop() {
**構文:**
```arduino
void calibrateMPU9250(float * gyroBias, float * accelBias);
```
<mark>void calibrateMPU9250(float * gyroBias, float * accelBias);</mark>
**説明:**
@@ -133,9 +127,7 @@ void loop() {
**構文:**
```arduino
uint8_t readByte(uint8_t address, uint8_t subAddress);
```
<mark>uint8_t readByte(uint8_t address, uint8_t subAddress);</mark>
**説明:**
@@ -170,9 +162,7 @@ void loop() {
**構文:**
```arduino
void readGyroData(int16_t * destination);
```
<mark>void readGyroData(int16_t * destination);</mark>
**説明:**
@@ -224,9 +214,7 @@ void loop() {
**構文:**
```arduino
void readAccelData(int16_t * destination);
```
<mark>void readAccelData(int16_t * destination);</mark>
**説明:**
+1 -3
View File
@@ -8,9 +8,7 @@
**構文:**
```arduino
tone(uint16_t freq, [uint32_t duration]);
```
<mark>tone(uint16_t freq, [uint32_t duration]);</mark>
| 引数 | 説明 | 型 |
| --- | --- | -- |
+4 -10
View File
@@ -8,9 +8,7 @@ LCD、TFカード、シリアルポートの有効化/無効化を設定しま
**構文:**
```arudino
void begin(bool LCDEnable=true, bool SDEnable=true, bool SerialEnable=true);
```
<mark>void begin(bool LCDEnable=true, bool SDEnable=true, bool SerialEnable=true);</mark>
**定義:**
@@ -52,9 +50,7 @@ void setup() {
**構文:**
```arduino
void update();
```
<mark>void update();</mark>
**定義:**
@@ -89,14 +85,12 @@ void loop() {
**構文:**
<mark>void powerOFF();</mark>
**説明:**
M5の電源をオフします。
```arduino
void powerOFF();
```
**定義:**
```arduino
+2 -6
View File
@@ -8,9 +8,7 @@ TFカード機能が使用可能になります。
**構文:**
```arduino
boolean begin(uint8_t cspin);
```
<mark>boolean begin(uint8_t cspin);</mark>
| 引数 | 説明 | 型 |
| --- | --- | -- |
@@ -34,9 +32,7 @@ void setup() {
**構文:**
```arduino
File open(const char *filename, uint8_t mode = FILE_READ);
```
<mark>File open(const char *filename, uint8_t mode = FILE_READ);</mark>
| 引数 | 説明 | 型 |
| --- | --- | -- |