Skip to content

Commit

Permalink
fix(variant): Fixed review comments for SPI and I2C Pins
Browse files Browse the repository at this point in the history
  • Loading branch information
Bharat-Pi committed Oct 2, 2024
1 parent 034d303 commit a55abe0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 21 deletions.
9 changes: 9 additions & 0 deletions variants/BharatPi-A7672S-4G/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,13 @@ static const uint8_t RX = 3;
static const uint8_t TX_4G = 17;
static const uint8_t RX_4G = 16;

static const uint8_t SDA = 21;
static const uint8_t SCL = 22;

static const uint8_t SS = 5;
static const uint8_t MOSI = 23;
static const uint8_t MISO = 19;
static const uint8_t SCK = 18;


#endif /* Pins_Arduino_h */
8 changes: 8 additions & 0 deletions variants/BharatPi-LoRa/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,12 @@ static const uint8_t SS = 4;
static const uint8_t RST = 14;
static const uint8_t DIO0 = 2;

static const uint8_t SDA = 21;
static const uint8_t SCL = 22;

static const uint8_t SS = -1;
static const uint8_t MOSI = -1;
static const uint8_t MISO = -1;
static const uint8_t SCK = -1;

#endif /* Pins_Arduino_h */
27 changes: 6 additions & 21 deletions variants/BharatPi-Node-Wifi/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,14 @@ static const uint8_t RX = 3;

static const uint8_t TX2 = 17;
static const uint8_t RX2 = 16;
#endif /* Pins_Arduino_h */#ifndef Pins_Arduino_h
#define Pins_Arduino_h

#include <stdint.h>

static const uint8_t LED_BUILTIN = 2;
#define BUILTIN_LED LED_BUILTIN // backward compatibility
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN

static const uint8_t SAFFRON_LED = 12;
static const uint8_t WHITE_LED = 2;
static const uint8_t GREEN_LED = 13;
static const uint8_t SDA = 21;
static const uint8_t SCL = 22;

static const uint8_t A0 = 14;
static const uint8_t A1 = 13;
static const uint8_t A2 = 12;
static const uint8_t A3 = 4;
static const uint8_t A4 = 2;
static const uint8_t A5 = 0;
static const uint8_t SS = 5;
static const uint8_t MOSI = 23;
static const uint8_t MISO = 19;
static const uint8_t SCK = 18;

static const uint8_t TX = 1;
static const uint8_t RX = 3;

static const uint8_t TX2 = 17;
static const uint8_t RX2 = 16;
#endif /* Pins_Arduino_h */

0 comments on commit a55abe0

Please sign in to comment.