Skip to content

Commit

Permalink
Fix formatting, remove unfinished effect
Browse files Browse the repository at this point in the history
  • Loading branch information
doughsay committed Jul 5, 2020
1 parent a311cea commit e003fe4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 106 deletions.
7 changes: 3 additions & 4 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Used by "mix format"
[
inputs: [
"{mix,.formatter}.exs",
"{config,lib,test}/**/*.{ex,exs}",
"dialyzer.ignore.exs"
inputs: ["*.{ex,exs}", "{config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: [
field: 3
]
]
7 changes: 3 additions & 4 deletions lib/rgb_matrix/effect/hue_wave.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,26 @@ defmodule RGBMatrix.Effect.HueWave do
description: """
Controls the speed at which the wave moves across the matrix.
"""
field(:speed, :integer, default: 4, min: 0, max: 32)
field :speed, :integer, default: 4, min: 0, max: 32

@doc name: "Width",
description: """
The rate of change of the wave, higher values means it's more spread out.
"""
field(:width, :integer, default: 20, min: 10, max: 100, step: 10)
field :width, :integer, default: 20, min: 10, max: 100, step: 10

@doc name: "Direction",
description: """
The direction the wave travels across the matrix.
"""
field(:direction, :option,
field :direction, :option,
default: :right,
options: [
:right,
:left,
:up,
:down
]
)
end

defmodule State do
Expand Down
7 changes: 3 additions & 4 deletions lib/rgb_matrix/effect/solid_reactive.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,25 @@ defmodule RGBMatrix.Effect.SolidReactive do
description: """
The speed at which the hue shifts back to base.
"""
field(:speed, :integer, default: 4, min: 0, max: 32)
field :speed, :integer, default: 4, min: 0, max: 32

@doc name: "Distance",
description: """
The distance that the hue shifts on key-press.
"""
field(:distance, :integer, default: 180, min: 0, max: 360, step: 10)
field :distance, :integer, default: 180, min: 0, max: 360, step: 10

@doc name: "Direction",
description: """
The direction (through the color wheel) that the hue shifts on key-press.
"""
field(:direction, :option,
field :direction, :option,
default: :random,
options: [
:random,
:negative,
:positive
]
)
end

defmodule State do
Expand Down
94 changes: 0 additions & 94 deletions lib/rgb_matrix/effect/splash.ex

This file was deleted.

0 comments on commit e003fe4

Please sign in to comment.