(kicad_sch
	(version 20231120)
	(generator "eeschema")
	(generator_version "8.0")
	(paper "A4")
	(lib_symbols
		(symbol "Device:RotaryEncoder_Switch"
			(pin_names
				(offset 0.254) hide)
			(exclude_from_sim no)
			(in_bom yes)
			(on_board yes)
			(property "Reference" "SW"
				(at 0 6.604 0)
			)
			(property "Value" "RotaryEncoder_Switch"
				(at 0 -6.604 0)
			)
			(property "Footprint" ""
				(at -3.81 4.064 0)
			)
			(property "Datasheet" "~"
				(at 0 6.604 0)
			)
			(property "Description" "Rotary encoder, dual channel, incremental quadrate outputs, with switch"
				(at 0 0 0)
			)
			(property "ki_keywords" "rotary switch encoder switch push button"
				(at 0 0 0)
			)
			(property "ki_fp_filters" "RotaryEncoder*Switch*"
				(at 0 0 0)
			)
			(symbol "RotaryEncoder_Switch_0_1"
				(rectangle
					(start -5.08 5.08)
					(end 5.08 -5.08)
					(fill
						(type background)
					)
				)
				(circle
					(center -3.81 0)
					(radius 0.254)
					(fill
						(type outline)
					)
				)
				(circle
					(center -0.381 0)
					(radius 1.905)
					(fill
						(type none)
					)
				)
				(arc
					(start -0.381 2.667)
					(mid -3.0988 -0.0635)
					(end -0.381 -2.794)
					(fill
						(type none)
					)
				)
				(polyline
					(pts
						(xy -0.635 -1.778) (xy -0.635 1.778)
					)
					(fill
						(type none)
					)
				)
				(polyline
					(pts
						(xy -0.381 -1.778) (xy -0.381 1.778)
					)
					(fill
						(type none)
					)
				)
				(polyline
					(pts
						(xy -0.127 1.778) (xy -0.127 -1.778)
					)
					(fill
						(type none)
					)
				)
				(polyline
					(pts
						(xy 3.81 0) (xy 3.429 0)
					)
					(fill
						(type none)
					)
				)
				(polyline
					(pts
						(xy 3.81 1.016) (xy 3.81 -1.016)
					)
					(fill
						(type none)
					)
				)
				(polyline
					(pts
						(xy -5.08 -2.54) (xy -3.81 -2.54) (xy -3.81 -2.032)
					)
					(fill
						(type none)
					)
				)
				(polyline
					(pts
						(xy -5.08 2.54) (xy -3.81 2.54) (xy -3.81 2.032)
					)
					(fill
						(type none)
					)
				)
				(polyline
					(pts
						(xy 0.254 -3.048) (xy -0.508 -2.794) (xy 0.127 -2.413)
					)
					(fill
						(type none)
					)
				)
				(polyline
					(pts
						(xy 0.254 2.921) (xy -0.508 2.667) (xy 0.127 2.286)
					)
					(fill
						(type none)
					)
				)
				(polyline
					(pts
						(xy 5.08 -2.54) (xy 4.318 -2.54) (xy 4.318 -1.016)
					)
					(fill
						(type none)
					)
				)
				(polyline
					(pts
						(xy 5.08 2.54) (xy 4.318 2.54) (xy 4.318 1.016)
					)
					(fill
						(type none)
					)
				)
				(polyline
					(pts
						(xy -5.08 0) (xy -3.81 0) (xy -3.81 -1.016) (xy -3.302 -2.032)
					)
					(fill
						(type none)
					)
				)
				(polyline
					(pts
						(xy -4.318 0) (xy -3.81 0) (xy -3.81 1.016) (xy -3.302 2.032)
					)
					(fill
						(type none)
					)
				)
				(circle
					(center 4.318 -1.016)
					(radius 0.127)
					(fill
						(type none)
					)
				)
				(circle
					(center 4.318 1.016)
					(radius 0.127)
					(fill
						(type none)
					)
				)
			)
			(symbol "RotaryEncoder_Switch_1_1"
				(pin passive line
					(at -7.62 2.54 0)
					(length 2.54)
					(name "A")
					(number "A")
				)
				(pin passive line
					(at -7.62 -2.54 0)
					(length 2.54)
					(name "B")
					(number "B")
				)
				(pin passive line
					(at -7.62 0 0)
					(length 2.54)
					(name "C")
					(number "C")
				)
				(pin passive line
					(at 7.62 2.54 180)
					(length 2.54)
					(name "S1")
					(number "S1")
				)
				(pin passive line
					(at 7.62 -2.54 180)
					(length 2.54)
					(name "S2")
					(number "S2")
				)
			)
		)
		(symbol "Interface_Expansion:MCP23017_SP"
			(pin_names
				(offset 1.016)
			)
			(exclude_from_sim no)
			(in_bom yes)
			(on_board yes)
			(property "Reference" "U"
				(at -11.43 24.13 0)
			)
			(property "Value" "MCP23017_SP"
				(at 0 0 0)
			)
			(property "Footprint" "Package_DIP:DIP-28_W7.62mm"
				(at 5.08 -25.4 0)
			)
			(property "Datasheet" "https://ww1.microchip.com/downloads/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP23017-Data-Sheet-DS20001952.pdf"
				(at 5.08 -27.94 0)
			)
			(property "Description" "16-bit I/O expander, I2C, interrupts, w pull-ups, SPDIP-28"
				(at 0 0 0)
			)
			(property "ki_keywords" "I2C parallel port expander"
				(at 0 0 0)
			)
			(property "ki_fp_filters" "DIP*W7.62mm*"
				(at 0 0 0)
			)
			(symbol "MCP23017_SP_0_1"
				(rectangle
					(start -12.7 22.86)
					(end 12.7 -22.86)
					(fill
						(type background)
					)
				)
			)
			(symbol "MCP23017_SP_1_1"
				(pin bidirectional line
					(at 17.78 20.32 180)
					(length 5.08)
					(name "GPB0")
					(number "1")
				)
				(pin power_in line
					(at 0 -27.94 90)
					(length 5.08)
					(name "VSS")
					(number "10")
				)
				(pin no_connect line
					(at -12.7 15.24 0)
					(length 5.08) hide
					(name "NC")
					(number "11")
				)
				(pin input line
					(at -17.78 17.78 0)
					(length 5.08)
					(name "SCK")
					(number "12")
				)
				(pin bidirectional line
					(at -17.78 20.32 0)
					(length 5.08)
					(name "SDA")
					(number "13")
				)
				(pin no_connect line
					(at -12.7 12.7 0)
					(length 5.08) hide
					(name "NC")
					(number "14")
				)
				(pin input line
					(at -17.78 -20.32 0)
					(length 5.08)
					(name "A0")
					(number "15")
				)
				(pin input line
					(at -17.78 -17.78 0)
					(length 5.08)
					(name "A1")
					(number "16")
				)
				(pin input line
					(at -17.78 -15.24 0)
					(length 5.08)
					(name "A2")
					(number "17")
				)
				(pin input line
					(at -17.78 -2.54 0)
					(length 5.08)
					(name "~{RESET}")
					(number "18")
				)
				(pin tri_state line
					(at -17.78 5.08 0)
					(length 5.08)
					(name "INTB")
					(number "19")
				)
				(pin bidirectional line
					(at 17.78 17.78 180)
					(length 5.08)
					(name "GPB1")
					(number "2")
				)
				(pin tri_state line
					(at -17.78 2.54 0)
					(length 5.08)
					(name "INTA")
					(number "20")
				)
				(pin bidirectional line
					(at 17.78 -2.54 180)
					(length 5.08)
					(name "GPA0")
					(number "21")
				)
				(pin bidirectional line
					(at 17.78 -5.08 180)
					(length 5.08)
					(name "GPA1")
					(number "22")
				)
				(pin bidirectional line
					(at 17.78 -7.62 180)
					(length 5.08)
					(name "GPA2")
					(number "23")
				)
				(pin bidirectional line
					(at 17.78 -10.16 180)
					(length 5.08)
					(name "GPA3")
					(number "24")
				)
				(pin bidirectional line
					(at 17.78 -12.7 180)
					(length 5.08)
					(name "GPA4")
					(number "25")
				)
				(pin bidirectional line
					(at 17.78 -15.24 180)
					(length 5.08)
					(name "GPA5")
					(number "26")
				)
				(pin bidirectional line
					(at 17.78 -17.78 180)
					(length 5.08)
					(name "GPA6")
					(number "27")
				)
				(pin output line
					(at 17.78 -20.32 180)
					(length 5.08)
					(name "GPA7")
					(number "28")
				)
				(pin bidirectional line
					(at 17.78 15.24 180)
					(length 5.08)
					(name "GPB2")
					(number "3")
				)
				(pin bidirectional line
					(at 17.78 12.7 180)
					(length 5.08)
					(name "GPB3")
					(number "4")
				)
				(pin bidirectional line
					(at 17.78 10.16 180)
					(length 5.08)
					(name "GPB4")
					(number "5")
				)
				(pin bidirectional line
					(at 17.78 7.62 180)
					(length 5.08)
					(name "GPB5")
					(number "6")
				)
				(pin bidirectional line
					(at 17.78 5.08 180)
					(length 5.08)
					(name "GPB6")
					(number "7")
				)
				(pin output line
					(at 17.78 2.54 180)
					(length 5.08)
					(name "GPB7")
					(number "8")
				)
				(pin power_in line
					(at 0 27.94 270)
					(length 5.08)
					(name "VDD")
					(number "9")
				)
			)
		)
	)
	(junction
		(at 238.76 90.17)
		(diameter 0)
		(color 0 0 0 0)
	)
	(junction
		(at 238.76 78.74)
		(diameter 0)
		(color 0 0 0 0)
	)
	(junction
		(at 238.76 55.88)
		(diameter 0)
		(color 0 0 0 0)
	)
	(junction
		(at 238.76 113.03)
		(diameter 0)
		(color 0 0 0 0)
	)
	(junction
		(at 238.76 67.31)
		(diameter 0)
		(color 0 0 0 0)
	)
	(junction
		(at 238.76 101.6)
		(diameter 0)
		(color 0 0 0 0)
	)
	(wire
		(pts
			(xy 238.76 101.6) (xy 238.76 90.17)
		)
	)
	(wire
		(pts
			(xy 231.14 67.31) (xy 238.76 67.31)
		)
	)
	(wire
		(pts
			(xy 212.09 115.57) (xy 212.09 124.46)
		)
	)
	(wire
		(pts
			(xy 212.09 124.46) (xy 238.76 124.46)
		)
	)
	(wire
		(pts
			(xy 212.09 92.71) (xy 212.09 101.6)
		)
	)
	(wire
		(pts
			(xy 215.9 46.99) (xy 212.09 46.99)
		)
	)
	(wire
		(pts
			(xy 238.76 67.31) (xy 238.76 55.88)
		)
	)
	(wire
		(pts
			(xy 238.76 55.88) (xy 238.76 44.45)
		)
	)
	(wire
		(pts
			(xy 199.39 44.45) (xy 199.39 74.93)
		)
	)
	(wire
		(pts
			(xy 212.09 78.74) (xy 238.76 78.74)
		)
	)
	(wire
		(pts
			(xy 238.76 78.74) (xy 238.76 67.31)
		)
	)
	(wire
		(pts
			(xy 163.83 74.93) (xy 199.39 74.93)
		)
	)
	(wire
		(pts
			(xy 212.09 101.6) (xy 238.76 101.6)
		)
	)
	(wire
		(pts
			(xy 205.74 80.01) (xy 205.74 53.34)
		)
	)
	(wire
		(pts
			(xy 215.9 115.57) (xy 212.09 115.57)
		)
	)
	(wire
		(pts
			(xy 231.14 53.34) (xy 231.14 49.53)
		)
	)
	(wire
		(pts
			(xy 212.09 55.88) (xy 238.76 55.88)
		)
	)
	(wire
		(pts
			(xy 201.93 49.53) (xy 215.9 49.53)
		)
	)
	(wire
		(pts
			(xy 231.14 90.17) (xy 238.76 90.17)
		)
	)
	(wire
		(pts
			(xy 163.83 80.01) (xy 205.74 80.01)
		)
	)
	(wire
		(pts
			(xy 238.76 124.46) (xy 238.76 113.03)
		)
	)
	(wire
		(pts
			(xy 205.74 53.34) (xy 231.14 53.34)
		)
	)
	(wire
		(pts
			(xy 212.09 69.85) (xy 212.09 78.74)
		)
	)
	(wire
		(pts
			(xy 215.9 92.71) (xy 212.09 92.71)
		)
	)
	(wire
		(pts
			(xy 238.76 113.03) (xy 238.76 101.6)
		)
	)
	(wire
		(pts
			(xy 231.14 113.03) (xy 238.76 113.03)
		)
	)
	(wire
		(pts
			(xy 212.09 46.99) (xy 212.09 55.88)
		)
	)
	(wire
		(pts
			(xy 215.9 69.85) (xy 212.09 69.85)
		)
	)
	(wire
		(pts
			(xy 238.76 44.45) (xy 231.14 44.45)
		)
	)
	(wire
		(pts
			(xy 238.76 90.17) (xy 238.76 78.74)
		)
	)
	(wire
		(pts
			(xy 163.83 77.47) (xy 201.93 77.47)
		)
	)
	(wire
		(pts
			(xy 201.93 77.47) (xy 201.93 49.53)
		)
	)
	(wire
		(pts
			(xy 199.39 44.45) (xy 215.9 44.45)
		)
	)
	(text "My new little Zynthian toy."
		(exclude_from_sim no)
		(at 228.6 173.482 0)
	)
	(symbol
		(lib_id "Device:RotaryEncoder_Switch")
		(at 223.52 46.99 0)
		(unit 1)
		(exclude_from_sim no)
		(in_bom yes)
		(on_board yes)
		(dnp no)
		(fields_autoplaced yes)
		(property "Reference" "SW1"
			(at 223.52 36.83 0)
		)
		(property "Value" "RotaryEncoder_Switch"
			(at 223.52 39.37 0)
		)
		(property "Footprint" ""
			(at 219.71 42.926 0)
		)
		(property "Datasheet" "~"
			(at 223.52 40.386 0)
		)
		(property "Description" "Rotary encoder, dual channel, incremental quadrate outputs, with switch"
			(at 223.52 46.99 0)
		)
		(pin "S2")
		(pin "A")
		(pin "C")
		(pin "B")
		(pin "S1")
		(instances
			(project ""
				(path
					(reference "SW1")
					(unit 1)
				)
			)
		)
	)
	(symbol
		(lib_id "Device:RotaryEncoder_Switch")
		(at 223.52 92.71 0)
		(unit 1)
		(exclude_from_sim no)
		(in_bom yes)
		(on_board yes)
		(dnp no)
		(fields_autoplaced yes)
		(property "Reference" "SW3"
			(at 223.52 82.55 0)
		)
		(property "Value" "RotaryEncoder_Switch"
			(at 223.52 85.09 0)
		)
		(property "Footprint" ""
			(at 219.71 88.646 0)
		)
		(property "Datasheet" "~"
			(at 223.52 86.106 0)
		)
		(property "Description" "Rotary encoder, dual channel, incremental quadrate outputs, with switch"
			(at 223.52 92.71 0)
		)
		(pin "A")
		(pin "S2")
		(pin "S1")
		(pin "C")
		(pin "B")
		(instances
			(project ""
				(path
					(reference "SW3")
					(unit 1)
				)
			)
		)
	)
	(symbol
		(lib_id "Interface_Expansion:MCP23017_SP")
		(at 146.05 85.09 0)
		(unit 1)
		(exclude_from_sim no)
		(in_bom yes)
		(on_board yes)
		(dnp no)
		(fields_autoplaced yes)
		(property "Reference" "U1"
			(at 148.2441 57.15 0)
		)
		(property "Value" "MCP23017_SP"
			(at 148.2441 59.69 0)
		)
		(property "Footprint" "Package_DIP:DIP-28_W7.62mm"
			(at 151.13 110.49 0)
		)
		(property "Datasheet" "https://ww1.microchip.com/downloads/aemDocuments/documents/APID/ProductDocuments/DataSheets/MCP23017-Data-Sheet-DS20001952.pdf"
			(at 151.13 113.03 0)
		)
		(property "Description" "16-bit I/O expander, I2C, interrupts, w pull-ups, SPDIP-28"
			(at 146.05 85.09 0)
		)
		(pin "17")
		(pin "9")
		(pin "21")
		(pin "19")
		(pin "18")
		(pin "20")
		(pin "2")
		(pin "24")
		(pin "22")
		(pin "28")
		(pin "4")
		(pin "3")
		(pin "16")
		(pin "1")
		(pin "10")
		(pin "26")
		(pin "13")
		(pin "27")
		(pin "8")
		(pin "25")
		(pin "5")
		(pin "14")
		(pin "15")
		(pin "7")
		(pin "6")
		(pin "23")
		(pin "11")
		(pin "12")
		(instances
			(project ""
				(path
					(reference "U1")
					(unit 1)
				)
			)
		)
	)
	(symbol
		(lib_id "Device:RotaryEncoder_Switch")
		(at 223.52 115.57 0)
		(unit 1)
		(exclude_from_sim no)
		(in_bom yes)
		(on_board yes)
		(dnp no)
		(fields_autoplaced yes)
		(property "Reference" "SW4"
			(at 223.52 105.41 0)
		)
		(property "Value" "RotaryEncoder_Switch"
			(at 223.52 107.95 0)
		)
		(property "Footprint" ""
			(at 219.71 111.506 0)
		)
		(property "Datasheet" "~"
			(at 223.52 108.966 0)
		)
		(property "Description" "Rotary encoder, dual channel, incremental quadrate outputs, with switch"
			(at 223.52 115.57 0)
		)
		(pin "A")
		(pin "B")
		(pin "S2")
		(pin "S1")
		(pin "C")
		(instances
			(project ""
				(path
					(reference "SW4")
					(unit 1)
				)
			)
		)
	)
	(symbol
		(lib_id "Device:RotaryEncoder_Switch")
		(at 223.52 69.85 0)
		(unit 1)
		(exclude_from_sim no)
		(in_bom yes)
		(on_board yes)
		(dnp no)
		(fields_autoplaced yes)
		(property "Reference" "SW2"
			(at 223.52 59.69 0)
		)
		(property "Value" "RotaryEncoder_Switch"
			(at 223.52 62.23 0)
		)
		(property "Footprint" ""
			(at 219.71 65.786 0)
		)
		(property "Datasheet" "~"
			(at 223.52 63.246 0)
		)
		(property "Description" "Rotary encoder, dual channel, incremental quadrate outputs, with switch"
			(at 223.52 69.85 0)
		)
		(pin "A")
		(pin "B")
		(pin "S2")
		(pin "S1")
		(pin "C")
		(instances
			(project ""
				(path
					(reference "SW2")
					(unit 1)
				)
			)
		)
	)
	(sheet_instances
		(path
			(page "1")
		)
	)
)
