mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Add support for MCP4461 quad i2c digipot/rheostat (#8180)
Co-authored-by: Oliver Kleinecke <kleinecke.oliver@googlemail.com> Co-authored-by: Djordje Mandic <6750655+DjordjeMandic@users.noreply.github.com> Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
This commit is contained in:
		
							
								
								
									
										28
									
								
								tests/components/mcp4461/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								tests/components/mcp4461/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| i2c: | ||||
|   - id: i2c_mcp4461 | ||||
|     sda: ${sda_pin} | ||||
|     scl: ${scl_pin} | ||||
|  | ||||
| mcp4461: | ||||
|   - id: mcp4461_digipot_01 | ||||
|  | ||||
| output: | ||||
|   - platform: mcp4461 | ||||
|     id: digipot_wiper_1 | ||||
|     mcp4461_id: mcp4461_digipot_01 | ||||
|     channel: A | ||||
|  | ||||
|   - platform: mcp4461 | ||||
|     id: digipot_wiper_2 | ||||
|     mcp4461_id: mcp4461_digipot_01 | ||||
|     channel: B | ||||
|  | ||||
|   - platform: mcp4461 | ||||
|     id: digipot_wiper_3 | ||||
|     mcp4461_id: mcp4461_digipot_01 | ||||
|     channel: C | ||||
|  | ||||
|   - platform: mcp4461 | ||||
|     id: digipot_wiper_4 | ||||
|     mcp4461_id: mcp4461_digipot_01 | ||||
|     channel: D | ||||
							
								
								
									
										5
									
								
								tests/components/mcp4461/test.esp32-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/mcp4461/test.esp32-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| substitutions: | ||||
|   sda_pin: GPIO16 | ||||
|   scl_pin: GPIO17 | ||||
|  | ||||
| <<: !include common.yaml | ||||
							
								
								
									
										5
									
								
								tests/components/mcp4461/test.esp32-c3-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/mcp4461/test.esp32-c3-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| substitutions: | ||||
|   sda_pin: GPIO4 | ||||
|   scl_pin: GPIO5 | ||||
|  | ||||
| <<: !include common.yaml | ||||
							
								
								
									
										5
									
								
								tests/components/mcp4461/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/mcp4461/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| substitutions: | ||||
|   sda_pin: GPIO4 | ||||
|   scl_pin: GPIO5 | ||||
|  | ||||
| <<: !include common.yaml | ||||
							
								
								
									
										5
									
								
								tests/components/mcp4461/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/mcp4461/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| substitutions: | ||||
|   sda_pin: GPIO16 | ||||
|   scl_pin: GPIO17 | ||||
|  | ||||
| <<: !include common.yaml | ||||
							
								
								
									
										5
									
								
								tests/components/mcp4461/test.esp8266-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								tests/components/mcp4461/test.esp8266-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| substitutions: | ||||
|   sda_pin: GPIO4 | ||||
|   scl_pin: GPIO5 | ||||
|  | ||||
| <<: !include common.yaml | ||||
		Reference in New Issue
	
	Block a user