Skip to content

Commit

Permalink
Update T-A7608-V2 PinMap
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed May 29, 2024
1 parent 37be3b4 commit d147fc0
Show file tree
Hide file tree
Showing 26 changed files with 331 additions and 71 deletions.
15 changes: 13 additions & 2 deletions examples/ATdebug/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
#define TINY_GSM_MODEM_A7670
#endif

// It is only available in V1.4 version. In other versions, IO36 is not connected.
#define BOARD_SOLAR_ADC_PIN (36)


#elif defined(LILYGO_T_CALL_A7670_V1_0)
#define MODEM_BAUDRATE (115200)
#define MODEM_DTR_PIN (14)
Expand Down Expand Up @@ -149,9 +153,9 @@
#define BOARD_PWRKEY_PIN (4)
#define BOARD_BAT_ADC_PIN (35)
// The modem power switch must be set to HIGH for the modem to supply power.
#define BOARD_POWERON_PIN (12)
#define BOARD_POWERON_PIN (12) //T-A7608-V2 is onboard led
#define MODEM_RING_PIN (33)
#define MODEM_RESET_PIN (5)
#define MODEM_RESET_PIN (5) //T-A7608-V2 no connection
#define BOARD_MISO_PIN (2)
#define BOARD_MOSI_PIN (15)
#define BOARD_SCK_PIN (14)
Expand All @@ -165,6 +169,10 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 or V2 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (34)


// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down Expand Up @@ -193,6 +201,9 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (3)

// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down
15 changes: 13 additions & 2 deletions examples/Blynk_Console/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
#define TINY_GSM_MODEM_A7670
#endif

// It is only available in V1.4 version. In other versions, IO36 is not connected.
#define BOARD_SOLAR_ADC_PIN (36)


#elif defined(LILYGO_T_CALL_A7670_V1_0)
#define MODEM_BAUDRATE (115200)
#define MODEM_DTR_PIN (14)
Expand Down Expand Up @@ -149,9 +153,9 @@
#define BOARD_PWRKEY_PIN (4)
#define BOARD_BAT_ADC_PIN (35)
// The modem power switch must be set to HIGH for the modem to supply power.
#define BOARD_POWERON_PIN (12)
#define BOARD_POWERON_PIN (12) //T-A7608-V2 is onboard led
#define MODEM_RING_PIN (33)
#define MODEM_RESET_PIN (5)
#define MODEM_RESET_PIN (5) //T-A7608-V2 no connection
#define BOARD_MISO_PIN (2)
#define BOARD_MOSI_PIN (15)
#define BOARD_SCK_PIN (14)
Expand All @@ -165,6 +169,10 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 or V2 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (34)


// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down Expand Up @@ -193,6 +201,9 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (3)

// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down
34 changes: 13 additions & 21 deletions examples/DeepSleep/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
#define TINY_GSM_MODEM_A7670
#endif

// It is only available in V1.4 version. In other versions, IO36 is not connected.
#define BOARD_SOLAR_ADC_PIN (36)


#elif defined(LILYGO_T_CALL_A7670_V1_0)
#define MODEM_BAUDRATE (115200)
#define MODEM_DTR_PIN (14)
Expand Down Expand Up @@ -149,9 +153,9 @@
#define BOARD_PWRKEY_PIN (4)
#define BOARD_BAT_ADC_PIN (35)
// The modem power switch must be set to HIGH for the modem to supply power.
#define BOARD_POWERON_PIN (12)
#define BOARD_POWERON_PIN (12) //T-A7608-V2 is onboard led
#define MODEM_RING_PIN (33)
#define MODEM_RESET_PIN (5)
#define MODEM_RESET_PIN (5) //T-A7608-V2 no connection
#define BOARD_MISO_PIN (2)
#define BOARD_MOSI_PIN (15)
#define BOARD_SCK_PIN (14)
Expand All @@ -165,6 +169,10 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 or V2 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (34)


// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down Expand Up @@ -193,6 +201,9 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (3)

// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand All @@ -218,25 +229,6 @@
// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

#elif defined(LILYGO_T_SIM7600X)

#define MODEM_DTR_PIN (32)
#define MODEM_RX_PIN (26)
#define MODEM_TX_PIN (27)
// The modem boot pin needs to follow the startup sequence.
#define BOARD_PWRKEY_PIN (4)
#define MODEM_RING_PIN (33)
// #define MODEM_RESET_PIN (40)
// #define MODEM_RTS_PIN (1)
// #define MODEM_CTS_PIN (2)

#define MODEM_RESET_LEVEL LOW
#define SerialAT Serial1

#ifndef TINY_GSM_MODEM_SIM7600
#define TINY_GSM_MODEM_SIM7600
#endif

#else
#error "Use ArduinoIDE, please open the macro definition corresponding to the board above <utilities.h>"
#endif
Expand Down
15 changes: 13 additions & 2 deletions examples/GPS_BuiltIn/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
#define TINY_GSM_MODEM_A7670
#endif

// It is only available in V1.4 version. In other versions, IO36 is not connected.
#define BOARD_SOLAR_ADC_PIN (36)


#elif defined(LILYGO_T_CALL_A7670_V1_0)
#define MODEM_BAUDRATE (115200)
#define MODEM_DTR_PIN (14)
Expand Down Expand Up @@ -149,9 +153,9 @@
#define BOARD_PWRKEY_PIN (4)
#define BOARD_BAT_ADC_PIN (35)
// The modem power switch must be set to HIGH for the modem to supply power.
#define BOARD_POWERON_PIN (12)
#define BOARD_POWERON_PIN (12) //T-A7608-V2 is onboard led
#define MODEM_RING_PIN (33)
#define MODEM_RESET_PIN (5)
#define MODEM_RESET_PIN (5) //T-A7608-V2 no connection
#define BOARD_MISO_PIN (2)
#define BOARD_MOSI_PIN (15)
#define BOARD_SCK_PIN (14)
Expand All @@ -165,6 +169,10 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 or V2 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (34)


// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down Expand Up @@ -193,6 +201,9 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (3)

// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down
15 changes: 13 additions & 2 deletions examples/GPS_NMEA_Parse/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
#define TINY_GSM_MODEM_A7670
#endif

// It is only available in V1.4 version. In other versions, IO36 is not connected.
#define BOARD_SOLAR_ADC_PIN (36)


#elif defined(LILYGO_T_CALL_A7670_V1_0)
#define MODEM_BAUDRATE (115200)
#define MODEM_DTR_PIN (14)
Expand Down Expand Up @@ -149,9 +153,9 @@
#define BOARD_PWRKEY_PIN (4)
#define BOARD_BAT_ADC_PIN (35)
// The modem power switch must be set to HIGH for the modem to supply power.
#define BOARD_POWERON_PIN (12)
#define BOARD_POWERON_PIN (12) //T-A7608-V2 is onboard led
#define MODEM_RING_PIN (33)
#define MODEM_RESET_PIN (5)
#define MODEM_RESET_PIN (5) //T-A7608-V2 no connection
#define BOARD_MISO_PIN (2)
#define BOARD_MOSI_PIN (15)
#define BOARD_SCK_PIN (14)
Expand All @@ -165,6 +169,10 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 or V2 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (34)


// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down Expand Up @@ -193,6 +201,9 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (3)

// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down
15 changes: 13 additions & 2 deletions examples/HttpClient/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
#define TINY_GSM_MODEM_A7670
#endif

// It is only available in V1.4 version. In other versions, IO36 is not connected.
#define BOARD_SOLAR_ADC_PIN (36)


#elif defined(LILYGO_T_CALL_A7670_V1_0)
#define MODEM_BAUDRATE (115200)
#define MODEM_DTR_PIN (14)
Expand Down Expand Up @@ -149,9 +153,9 @@
#define BOARD_PWRKEY_PIN (4)
#define BOARD_BAT_ADC_PIN (35)
// The modem power switch must be set to HIGH for the modem to supply power.
#define BOARD_POWERON_PIN (12)
#define BOARD_POWERON_PIN (12) //T-A7608-V2 is onboard led
#define MODEM_RING_PIN (33)
#define MODEM_RESET_PIN (5)
#define MODEM_RESET_PIN (5) //T-A7608-V2 no connection
#define BOARD_MISO_PIN (2)
#define BOARD_MOSI_PIN (15)
#define BOARD_SCK_PIN (14)
Expand All @@ -165,6 +169,10 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 or V2 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (34)


// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down Expand Up @@ -193,6 +201,9 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (3)

// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down
15 changes: 13 additions & 2 deletions examples/HttpsBuiltlnGet/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
#define TINY_GSM_MODEM_A7670
#endif

// It is only available in V1.4 version. In other versions, IO36 is not connected.
#define BOARD_SOLAR_ADC_PIN (36)


#elif defined(LILYGO_T_CALL_A7670_V1_0)
#define MODEM_BAUDRATE (115200)
#define MODEM_DTR_PIN (14)
Expand Down Expand Up @@ -149,9 +153,9 @@
#define BOARD_PWRKEY_PIN (4)
#define BOARD_BAT_ADC_PIN (35)
// The modem power switch must be set to HIGH for the modem to supply power.
#define BOARD_POWERON_PIN (12)
#define BOARD_POWERON_PIN (12) //T-A7608-V2 is onboard led
#define MODEM_RING_PIN (33)
#define MODEM_RESET_PIN (5)
#define MODEM_RESET_PIN (5) //T-A7608-V2 no connection
#define BOARD_MISO_PIN (2)
#define BOARD_MOSI_PIN (15)
#define BOARD_SCK_PIN (14)
Expand All @@ -165,6 +169,10 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 or V2 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (34)


// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down Expand Up @@ -193,6 +201,9 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (3)

// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down
15 changes: 13 additions & 2 deletions examples/HttpsBuiltlnPost/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
#define TINY_GSM_MODEM_A7670
#endif

// It is only available in V1.4 version. In other versions, IO36 is not connected.
#define BOARD_SOLAR_ADC_PIN (36)


#elif defined(LILYGO_T_CALL_A7670_V1_0)
#define MODEM_BAUDRATE (115200)
#define MODEM_DTR_PIN (14)
Expand Down Expand Up @@ -149,9 +153,9 @@
#define BOARD_PWRKEY_PIN (4)
#define BOARD_BAT_ADC_PIN (35)
// The modem power switch must be set to HIGH for the modem to supply power.
#define BOARD_POWERON_PIN (12)
#define BOARD_POWERON_PIN (12) //T-A7608-V2 is onboard led
#define MODEM_RING_PIN (33)
#define MODEM_RESET_PIN (5)
#define MODEM_RESET_PIN (5) //T-A7608-V2 no connection
#define BOARD_MISO_PIN (2)
#define BOARD_MOSI_PIN (15)
#define BOARD_SCK_PIN (14)
Expand All @@ -165,6 +169,10 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 or V2 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (34)


// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down Expand Up @@ -193,6 +201,9 @@
#define TINY_GSM_MODEM_A7608
#endif

// only version v1.1 has solar adc pin
#define BOARD_SOLAR_ADC_PIN (3)

// 127 is defined in GSM as the AUXVDD index
#define MODEM_GPS_ENABLE_GPIO (127)

Expand Down
Loading

0 comments on commit d147fc0

Please sign in to comment.