Skip to content

Commit

Permalink
Make the configuration points' formatting consistent, disable linter …
Browse files Browse the repository at this point in the history
…format checking, since it insists on making it irregular
  • Loading branch information
chrisib committed Dec 2, 2023
1 parent b1b41e3 commit f8ba1ab
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions software/firmware/europi_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class EuroPiConfig:

@classmethod
def config_points(cls):
# fmt: off
return [
# EuroPi revision -- this is currently unused, but reserved for future expansion
configuration.choice(
Expand All @@ -36,17 +37,33 @@ def config_points(cls):
),

# CPU & board settings
configuration.choice(name="pico_model", choices=["pico", "pico w"], default="pico"),
configuration.choice(
name="pico_model",
choices=["pico", "pico w"],
default="pico"
),
configuration.choice(
name="cpu_freq",
choices=[PICO_DEFAULT_CPU_FREQ, OVERCLOCKED_CPU_FREQ],
default=OVERCLOCKED_CPU_FREQ,
),

# Display settings
configuration.choice(name="rotate_display", choices=[False, True], default=False),
configuration.integer(name="display_width", range=range(8, 1024), default=128),
configuration.integer(name="display_height", range=range(8, 1024), default=32),
configuration.choice(
name="rotate_display",
choices=[False, True],
default=False
),
configuration.integer(
name="display_width",
range=range(8, 1024),
default=128
),
configuration.integer(
name="display_height",
range=range(8, 1024),
default=32
),

# Synthesizer family settings
# Normally this is intended for Eurorack compatibility, but being open-source someone may
Expand All @@ -56,9 +73,18 @@ def config_points(cls):
choices=[MOOG_VOLTS_PER_OCTAVE, BUCHLA_VOLTS_PER_OCTAVE],
default=MOOG_VOLTS_PER_OCTAVE,
),
configuration.integer(name="max_output_voltage", range=range(1, 11), default=10),
configuration.integer(name="max_input_voltage", range=range(1, 13), default=12),
configuration.integer(
name="max_output_voltage",
range=range(1, 11),
default=10
),
configuration.integer(
name="max_input_voltage",
range=range(1, 13),
default=12
),
]
# fmt: on


def load_europi_config():
Expand Down

0 comments on commit f8ba1ab

Please sign in to comment.