Skip to content

Instantly share code, notes, and snippets.

@ddribin
Last active November 21, 2024 16:07
Show Gist options
  • Save ddribin/0b90263fafab8d56804b32b6496bae5e to your computer and use it in GitHub Desktop.
Save ddribin/0b90263fafab8d56804b32b6496bae5e to your computer and use it in GitHub Desktop.
Partial EBNF for Potentiometers
part = "PDB18", gangs, "-" pin-type, detent, shaft-length, shaft-style, "-", resistance, taper ;
gangs = "1" | "2" ;
pin-type =
"K" (* PC pns vertical 12.5mm *) |
"A" (* PC pins, vertical 18.0mm *) ;
detent =
"2" (* Center detents *) |
"4" (* No Detents *) ;
shaft-length = (* in millimeters *)
"15" | "18" | "20" | "25" | "30" ;
shaft-style =
"F" (* Metal flatted *) |
"K" (* Metal knurled *) |
"P" (* Metal plain *) ;
(* Standard code, e.g. "103" = "1,000" *)
resistance = digit, digit, digit ;
taper =
"B" (* Linear *) |
"A2" (* Logarithmic, audio *) ;
digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
@ddribin
Copy link
Author

ddribin commented Nov 20, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment