# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. import Config button_pins = {24, 25, 5, 6} config :ex_speed_game, target: Mix.target(), # Set to true to enable debug prints (via serial console) and false to disable. debug: true, # Amount of buttons in the game. buttons: 4, # Pins of the buttons, in order from left to right in the case. Leftmost will be 0, and number # will increase to the right. button_pins: button_pins, # Pins of the LED lights of the buttons mapped to the button pins. button_light_pins: { {17, elem(button_pins, 0)}, {27, elem(button_pins, 1)}, {22, elem(button_pins, 2)}, {23, elem(button_pins, 3)} }, # Debounce delay, i.e. how long a button must be high or low before it is accepted, to reduce # spurious inputs. In milliseconds. debounce_delay: 20, # Delay at start of game between ticks, in milliseconds. delay_start: 570, # Delay at start of pro game delay_pro: 321, # Score at start of pro game score_pro: 100, # Maximum amount of ticks you can be "behind" before the game is stopped. max_waiting: 20, # Interface to show IP for when using ShowIP iface: "usb0", # LED pattern to show when there is a crash crash_pattern: {false, true, true, false}, # Time to show crash pattern for crash_pattern_delay: 3_000 # Customize non-Elixir parts of the firmware. See # https://hexdocs.pm/nerves/advanced-configuration.html for details. config :nerves, :firmware, rootfs_overlay: "rootfs_overlay" # Set the SOURCE_DATE_EPOCH date for reproducible builds. # See https://reproducible-builds.org/docs/source-date-epoch/ for more information config :nerves, source_date_epoch: "1583172807" # Use Ringlogger as the logger backend and remove :console. # See https://hexdocs.pm/ring_logger/readme.html for more information on # configuring ring_logger. config :logger, backends: [RingLogger] if Mix.target() != :host do import_config "target.exs" end