Skip to content

Commit

Permalink
Assign led object
Browse files Browse the repository at this point in the history
  • Loading branch information
FDelporte committed Jun 10, 2024
1 parent 8b9b36b commit 32a18a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class Pi4JController {

public Pi4JController(@Autowired Context pi4j) {
// LED example is based on https://www.pi4j.com/getting-started/minimal-example-application/
pi4j.digitalOutput().create(PIN_LED);
led = pi4j.digitalOutput().create(PIN_LED);
}

@GetMapping("/led/{status}")
Expand Down

0 comments on commit 32a18a8

Please sign in to comment.