Skip to content

Commit 89e50a8

Browse files
committed
Modify pin number of cezerio dev ESP32C6
Modify pin number of cezerio dev ESP32C6
1 parent 04ab7c0 commit 89e50a8

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

boards.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42396,7 +42396,7 @@ waveshare_esp32_s3_touch_amoled_241.menu.EraseFlash.all.upload.erase_cmd=-e
4239642396

4239742397
##############################################################
4239842398

42399-
cezerio_dev_esp32c6.name=CEZERIO DEV ESP32-C6
42399+
cezerio_dev_esp32c6.name=cezerio dev ESP32C6
4240042400

4240142401
cezerio_dev_esp32c6.bootloader.tool=esptool_py
4240242402
cezerio_dev_esp32c6.bootloader.tool.default=esptool_py

variants/cezerio_dev_esp32c6/pins_arduino.h

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,48 @@
55
#include "soc/soc_caps.h"
66

77
#define USB_VID 0x303A
8-
#define USB_PID 0x1001 //set uniq PID
8+
#define USB_PID 0x8299
99
#define USB_MANUFACTURER "RFtek Electronics"
10-
#define USB_PRODUCT "CEZERIO DEV ESP32-C6"
10+
#define USB_PRODUCT "cezerio dev ESP32C6"
1111
#define USB_SERIAL ""
1212

13-
#define PIN_RGB_LED 8
13+
#define PIN_RGB_LED 3
1414
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
1515
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_RGB_LED;
1616
#define BUILTIN_LED LED_BUILTIN // backward compatibility
1717
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
1818
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbLedWrite()
1919
#define RGB_BUILTIN LED_BUILTIN
20+
#define RGBLED LED_BUILTIN
2021
#define RGB_BRIGHTNESS 64
2122

2223
static const uint8_t BUT_BUILTIN = 9;
2324
#define BUILTIN_BUT BUT_BUILTIN // backward compatibility
2425
#define BUT_BUILTIN BUT_BUILTIN // allow testing #ifdef BUT_BUILTIN
26+
#define BOOT BUT_BUILTIN
2527

2628
static const uint8_t TX = 16;
2729
static const uint8_t RX = 17;
2830

29-
static const uint8_t SDA = 19;
30-
static const uint8_t SCL = 18;
31+
static const uint8_t SDA = 8;
32+
static const uint8_t SCL = 7;
3133

32-
static const uint8_t SS = 0;
34+
static const uint8_t SS = 14;
3335
static const uint8_t MOSI = 22;
3436
static const uint8_t MISO = 23;
3537
static const uint8_t SCK = 21;
3638

37-
static const uint8_t A0 = 1;
38-
static const uint8_t A1 = 4;
39-
static const uint8_t A2 = 6;
40-
static const uint8_t A3 = 5;
41-
static const uint8_t A4 = 3;
42-
static const uint8_t A5 = 2;
43-
static const uint8_t A6 = 0;
39+
static const uint8_t A0 = 0;
40+
static const uint8_t A1 = 1;
41+
static const uint8_t A2 = 2;
42+
static const uint8_t A3 = 3;
43+
static const uint8_t A4 = 4;
44+
static const uint8_t A5 = 5;
45+
static const uint8_t A6 = 6;
46+
47+
static const uint8_t MATRIX = 18;
48+
49+
static const uint8_t IMUSD = 8;
50+
static const uint8_t IMUSC = 7;
4451

4552
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)