Skip to content

Commit

Permalink
Delete some lines I forgot to delete (#12)
Browse files Browse the repository at this point in the history
oops
  • Loading branch information
jamesjarvis authored Nov 24, 2021
1 parent ac1e1c9 commit ed576ed
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ const (
numLEDs = 240

flagBrightness = "brightness"
flagColourWipe = "colour_wipe_colour"
flagRainbow = "rainbow"
)

func main() {
Expand All @@ -29,16 +27,6 @@ func main() {
Aliases: []string{"b"},
Usage: "Brightness [0-255]",
},
&cli.StringFlag{
Name: flagColourWipe,
Aliases: []string{"c"},
Usage: "Colour wipe colour",
},
&cli.BoolFlag{
Name: flagRainbow,
Aliases: []string{"r"},
Usage: "Rainbow setting",
},
},
Action: func(ctx *cli.Context) error {
brightness := ctx.Int(flagBrightness)
Expand Down Expand Up @@ -74,32 +62,6 @@ func main() {

server := server.NewServer(leds, server.WithProgram(rainbowProgram))
return server.Serve()

// // If rainbow option applied, run that.
// isRainbow := ctx.Bool(flagRainbow)
// if isRainbow {
// fmt.Println("Starting rainbow")
// return leds.RainbowRGB(ctx.Context)
// }

// // Otherwise run colour wipe.
// colourString := ctx.String(flagColourWipe)
// colour := colourutils.OFF
// switch colourString {
// case "OFF":
// colour = colourutils.OFF
// case "RED":
// colour = colourutils.RED
// case "BLUE":
// colour = colourutils.BLUE
// case "GREEN":
// colour = colourutils.GREEN
// default:
// colour = colourutils.WHITE
// }

// fmt.Printf("Starting colour wipe")
// return leds.ColourWipe(colour)
},
}

Expand Down

0 comments on commit ed576ed

Please sign in to comment.