23 lines
		
	
	
		
			739 B
		
	
	
	
		
			C++
		
	
	
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
		
			739 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| 
								 | 
							
								/*#############################################################################
							 | 
						||
| 
								 | 
							
								## Author: Shaun Reed                                                        ##
							 | 
						||
| 
								 | 
							
								## Legal: All Content (c) 2025 Shaun Reed, all rights reserved               ##
							 | 
						||
| 
								 | 
							
								##                                                                           ##
							 | 
						||
| 
								 | 
							
								## Contact: shaunrd0@gmail.com  | URL: www.shaunreed.com                     ##
							 | 
						||
| 
								 | 
							
								##############################################################################
							 | 
						||
| 
								 | 
							
								*/
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include "i2c.h"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// Pin may vary based on your schematic.
							 | 
						||
| 
								 | 
							
								#define PIN_SDA                GPIO_NUM_21
							 | 
						||
| 
								 | 
							
								#define PIN_SCL                GPIO_NUM_22
							 | 
						||
| 
								 | 
							
								#define PIN_RST                (-1)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								I2C i2c(PIN_SDA, PIN_SCL, PIN_RST);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								extern "C" void app_main(void)
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								}
							 |