name = "steve/rotary-dip-switch-tht" version = "1.0.0" runtime = "steve" license = "MIT" summary = "Through-hole 10-position rotary coded DIP switch from Nidec's SH-7000 catalogue: SH-7010C (real code) and SH-7030C (complementary code)." description = """Through-hole rotary coded DIP switch, 10 positions, top setting, Nidec SH-7010C (real code) and SH-7030C (complementary code), from Nidec's SH-7000 catalogue (page 4): body 7.3 x 7.1, 3.7 high, a stainless steel cover and a rotor with a 0.7 x 2.8 setting slot; six pins 0.6 x 0.15, 2.54 apart in two rows 7.62 over, 3.5 below the board. See the README.""" tags = ["rotary-switch", "dip-switch", "coded-switch", "switch", "through-hole", "nidec", "copal", "electronics"] [parameters.kind] type = "choice" default = "SH-7010C" choices = ["SH-7010C", "SH-7030C"] label = "Type" description = "SH-7010C: real code (BCD); SH-7030C: complementary code. The two are the same size." [parameters.position] type = "integer" default = 0 min = 0 max = 9 label = "Setting" description = "The rotor setting the slot's arrow points at, 0 to 9." [[presets]] id = "sh-7010c" title = "Nidec SH-7010C, 10-position rotary coded DIP switch, real code, through hole" params = { kind = "SH-7010C" } aliases = ["Nidec SH-7010C", "Copal SH-7010C", "SH-7010C"] standard = "Nidec SH-7000" [[presets]] id = "sh-7030c" title = "Nidec SH-7030C, 10-position rotary coded DIP switch, complementary code, through hole" params = { kind = "SH-7030C" } aliases = ["Nidec SH-7030C", "Copal SH-7030C", "SH-7030C"] standard = "Nidec SH-7000"