Skip to content

Commit 319b347

Browse files
committed
Modify pin number of cezerio dev ESP32C6
Modify pin number of cezerio dev ESP32C6
1 parent 590b079 commit 319b347

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

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)