kopia lustrzana https://github.com/meshtastic/firmware
				
				
				
			Added triple-press GPS toggle button changes for select ESP32 devices (#2617)
* Added triple-press GPS toggle button changes * Revert edits to extensions.json * comma'd --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com> Co-authored-by: code8buster <communismisgreat@national.shitposting.agency>pull/2609/head
							rodzic
							
								
									541291cc70
								
							
						
					
					
						commit
						5995c7060d
					
				| 
						 | 
				
			
			@ -4,4 +4,5 @@ extends = esp32_base
 | 
			
		|||
board = heltec_wifi_lora_32_V2
 | 
			
		||||
board_level = extra
 | 
			
		||||
build_flags = 
 | 
			
		||||
  ${esp32_base.build_flags} -D HELTEC_V2_1 -I variants/heltec_v2.1
 | 
			
		||||
  ${esp32_base.build_flags} -D HELTEC_V2_1 -I variants/heltec_v2.1
 | 
			
		||||
  -DGPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely.
 | 
			
		||||
| 
						 | 
				
			
			@ -8,6 +8,8 @@
 | 
			
		|||
#define GPS_RX_PIN 36
 | 
			
		||||
#define GPS_TX_PIN 33
 | 
			
		||||
 | 
			
		||||
#define PIN_GPS_EN 37 // GPS power enable pin
 | 
			
		||||
 | 
			
		||||
#ifndef USE_JTAG  // gpio15 is TDO for JTAG, so no I2C on this board while doing jtag
 | 
			
		||||
#define I2C_SDA 4 // I2C pins for this board
 | 
			
		||||
#define I2C_SCL 15
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,4 +4,5 @@ board = tlora-t3s3-v1
 | 
			
		|||
upload_protocol = esp-builtin
 | 
			
		||||
 | 
			
		||||
build_flags = 
 | 
			
		||||
  ${esp32_base.build_flags} -D TLORA_T3S3_V1 -I variants/tlora_t3s3_v1
 | 
			
		||||
  ${esp32_base.build_flags} -D TLORA_T3S3_V1 -I variants/tlora_t3s3_v1
 | 
			
		||||
  -DGPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely.
 | 
			
		||||
| 
						 | 
				
			
			@ -1,6 +1,8 @@
 | 
			
		|||
#undef GPS_RX_PIN
 | 
			
		||||
#undef GPS_TX_PIN
 | 
			
		||||
 | 
			
		||||
#define PIN_GPS_EN 42 // GPS power enable pin
 | 
			
		||||
 | 
			
		||||
#define HAS_SDCARD
 | 
			
		||||
#define SDCARD_USE_SPI1
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,4 +2,5 @@
 | 
			
		|||
extends = esp32_base
 | 
			
		||||
board = ttgo-lora32-v21
 | 
			
		||||
build_flags = 
 | 
			
		||||
  ${esp32_base.build_flags} -D TLORA_V2_1_16 -I variants/tlora_v2_1_16
 | 
			
		||||
  ${esp32_base.build_flags} -D TLORA_V2_1_16 -I variants/tlora_v2_1_16
 | 
			
		||||
  -DGPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely.
 | 
			
		||||
| 
						 | 
				
			
			@ -3,6 +3,8 @@
 | 
			
		|||
#define GPS_RX_PIN 15 // per @der_bear on the forum, 36 is incorrect for this board type and 15 is a better pick
 | 
			
		||||
#define GPS_TX_PIN 13
 | 
			
		||||
 | 
			
		||||
#define PIN_GPS_EN 19 // GPS power enable pin
 | 
			
		||||
 | 
			
		||||
#define BATTERY_PIN 35
 | 
			
		||||
#define ADC_CHANNEL ADC1_GPIO35_CHANNEL
 | 
			
		||||
#define BATTERY_SENSE_SAMPLES 30
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue