mirror of
				https://github.com/meshtastic/firmware.git
				synced 2025-10-28 23:34:03 +00:00 
			
		
		
		
	 d1ea589757
			
		
	
	
		d1ea589757
		
			
		
	
	
	
	
		
			
			* Isolate esp32 adc logic gymnastics, try simplifying getBattVoltage * Set sense resolution for pico platforms * try silencing cppcheck when variant has no battery pin * ADC channel for esp-idf calibration * Missed an rp2040 device --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
		
			
				
	
	
		
			27 lines
		
	
	
		
			493 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			493 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #define ARDUINO_ARCH_AVR
 | |
| 
 | |
| #define USE_SSD1306
 | |
| 
 | |
| #define BUTTON_PIN 2
 | |
| #define BUTTON_NEED_PULLUP
 | |
| 
 | |
| #define LED_PIN PIN_LED
 | |
| 
 | |
| #undef BATTERY_PIN
 | |
| #define BATTERY_SENSE_RESOLUTION_BITS ADC_RESOLUTION
 | |
| 
 | |
| #undef LORA_SCK
 | |
| #undef LORA_MISO
 | |
| #undef LORA_MOSI
 | |
| #undef LORA_CS
 | |
| 
 | |
| #define USE_RF95
 | |
| #define LORA_SCK PIN_SPI0_SCK
 | |
| #define LORA_MISO PIN_SPI0_MISO
 | |
| #define LORA_MOSI PIN_SPI0_MOSI
 | |
| #define LORA_CS PIN_SPI0_SS
 | |
| 
 | |
| #define LORA_DIO0 21
 | |
| #define LORA_DIO1 22
 | |
| #define LORA_DIO2 RADIOLIB_NC
 | |
| #define LORA_RESET 20 |