Skip to content

Commit 48527fc

Browse files
committed
update variant
1 parent 20a0401 commit 48527fc

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

variants/agruminolemonv4/pins_arduino.h

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,27 @@
2626
#ifndef Pins_Arduino_h
2727
#define Pins_Arduino_h
2828

29-
#define PIN_WIRE_SDA (4)
30-
#define PIN_WIRE_SCL (5)
31-
32-
static const uint8_t SDA = PIN_WIRE_SDA;
33-
static const uint8_t SCL = PIN_WIRE_SCL;
34-
3529
#define LED_BUILTIN 2
3630

37-
static const uint8_t D0 = 16;
38-
static const uint8_t D1 = 5;
39-
static const uint8_t D2 = 4;
40-
static const uint8_t D3 = 0;
41-
static const uint8_t D4 = 2;
42-
static const uint8_t D5 = 14;
43-
static const uint8_t D6 = 12;
44-
static const uint8_t D7 = 13;
45-
static const uint8_t D8 = 15;
46-
static const uint8_t RX = 3;
47-
static const uint8_t TX = 1;
31+
// PINOUT Agrumino Implemented
32+
#define PIN_SDA 2 // [X] BOOT: Must be HIGH at boot
33+
#define PIN_SCL 14 // [X]
34+
#define PIN_PUMP 12 // [X]
35+
#define PIN_BTN_S1 4 // [X] Same as Internal WT8266 LED
36+
#define PIN_USB_DETECT 5 // [X]
37+
#define PIN_MOSFET 15 // [X] BOOT: Must be LOW at boot
38+
#define PIN_BATT_STAT 13 // [X]
39+
#define PIN_LEVEL 0 // [ ] BOOT: HIGH for Running and LOW for Program
40+
41+
static constexpr uint8_t D0 = 16;
42+
static constexpr uint8_t RX = 3;
43+
static constexpr uint8_t TX = 1;
44+
45+
#define PIN_WIRE_SDA PIN_SDA
46+
#define PIN_WIRE_SCL PIN_SCL
47+
48+
static constexpr uint8_t SDA = PIN_WIRE_SDA;
49+
static constexpr uint8_t SCL = PIN_WIRE_SCL;
4850

4951
#include "../generic/common.h"
5052

0 commit comments

Comments
 (0)