Skip to content

Commit 590b079

Browse files
committed
Add cezerio dev ESP32-C6
1 parent 7849a79 commit 590b079

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
#include "soc/soc_caps.h"
6+
7+
#define USB_VID 0x303A
8+
#define USB_PID 0x1001 //set uniq PID
9+
#define USB_MANUFACTURER "RFtek Electronics"
10+
#define USB_PRODUCT "CEZERIO DEV ESP32-C6"
11+
#define USB_SERIAL ""
12+
13+
#define PIN_RGB_LED 8
14+
// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
15+
static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_RGB_LED;
16+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
17+
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
18+
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbLedWrite()
19+
#define RGB_BUILTIN LED_BUILTIN
20+
#define RGB_BRIGHTNESS 64
21+
22+
static const uint8_t BUT_BUILTIN = 9;
23+
#define BUILTIN_BUT BUT_BUILTIN // backward compatibility
24+
#define BUT_BUILTIN BUT_BUILTIN // allow testing #ifdef BUT_BUILTIN
25+
26+
static const uint8_t TX = 16;
27+
static const uint8_t RX = 17;
28+
29+
static const uint8_t SDA = 19;
30+
static const uint8_t SCL = 18;
31+
32+
static const uint8_t SS = 0;
33+
static const uint8_t MOSI = 22;
34+
static const uint8_t MISO = 23;
35+
static const uint8_t SCK = 21;
36+
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;
44+
45+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)