I2C gps testing
This commit is contained in:
		
							parent
							
								
									85e9368c6e
								
							
						
					
					
						commit
						500d7dd656
					
				@ -7,12 +7,12 @@
 | 
				
			|||||||
// !!EXPERIMENTAL - not tested yet!!
 | 
					// !!EXPERIMENTAL - not tested yet!!
 | 
				
			||||||
// uncomment this only if your LoPy runs on a Pytrack expansion board with GPS
 | 
					// uncomment this only if your LoPy runs on a Pytrack expansion board with GPS
 | 
				
			||||||
// see http://www.quectel.com/UploadImage/Downlad/Quectel_L76-L_I2C_Application_Note_V1.0.pdf
 | 
					// see http://www.quectel.com/UploadImage/Downlad/Quectel_L76-L_I2C_Application_Note_V1.0.pdf
 | 
				
			||||||
#define HAS_GPS 1
 | 
					//#define HAS_GPS 1
 | 
				
			||||||
#define GPS_QUECTEL_L76 GPIO_NUM_25, GPIO_NUM_26 // SDA (P22), SCL (P21)
 | 
					//#define GPS_QUECTEL_L76 GPIO_NUM_25, GPIO_NUM_26 // SDA (P22), SCL (P21)
 | 
				
			||||||
#define GPS_I2C_ADDRESS_READ 0x21
 | 
					//#define GPS_I2C_ADDRESS_READ 0x21
 | 
				
			||||||
#define GPS_I2C_ADDRESS_WRITE 0x20
 | 
					//#define GPS_I2C_ADDRESS_WRITE 0x20
 | 
				
			||||||
#define HAS_BUTTON GPIO_NUM_37 // (P14)
 | 
					//#define HAS_BUTTON GPIO_NUM_37 // (P14)
 | 
				
			||||||
#define BUTTON_PULLUP 1  // Button need pullup instead of default pulldown
 | 
					//#define BUTTON_PULLUP 1  // Button need pullup instead of default pulldown
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Hardware pin definitions for Pycom LoPy board
 | 
					// Hardware pin definitions for Pycom LoPy board
 | 
				
			||||||
#define PIN_SPI_SS    GPIO_NUM_17
 | 
					#define PIN_SPI_SS    GPIO_NUM_17
 | 
				
			||||||
 | 
				
			|||||||
@ -8,7 +8,7 @@
 | 
				
			|||||||
// uncomment this only if your LoPy runs on a Pytrack expansion board with GPS
 | 
					// uncomment this only if your LoPy runs on a Pytrack expansion board with GPS
 | 
				
			||||||
// see http://www.quectel.com/UploadImage/Downlad/Quectel_L76-L_I2C_Application_Note_V1.0.pdf
 | 
					// see http://www.quectel.com/UploadImage/Downlad/Quectel_L76-L_I2C_Application_Note_V1.0.pdf
 | 
				
			||||||
//#define HAS_GPS 1
 | 
					//#define HAS_GPS 1
 | 
				
			||||||
//#define GPS_I2C_PINS GPIO_NUM_25, GPIO_NUM_26 // SDA (P22), SCL (P21)
 | 
					//#define GPS_QUECTEL_L76 GPIO_NUM_25, GPIO_NUM_26 // SDA (P22), SCL (P21)
 | 
				
			||||||
//#define GPS_I2C_ADDRESS_READ 0x21
 | 
					//#define GPS_I2C_ADDRESS_READ 0x21
 | 
				
			||||||
//#define GPS_I2C_ADDRESS_WRITE 0x20
 | 
					//#define GPS_I2C_ADDRESS_WRITE 0x20
 | 
				
			||||||
//#define HAS_BUTTON GPIO_NUM_37 // (P14)
 | 
					//#define HAS_BUTTON GPIO_NUM_37 // (P14)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user