Skip to content

Commit 635ec82

Browse files
committed
I/O: Rename LED.set() to LED.setBrightness()
1 parent 6418fdb commit 635ec82

File tree

1 file changed

+1
-1
lines changed
  • java/libraries/io/src/processing/io

1 file changed

+1
-1
lines changed

java/libraries/io/src/processing/io/LED.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public static String[] list() {
141141
* Sets the brightness
142142
* @param bright 0.0 (off) to 1.0 (maximum)
143143
*/
144-
public void set(float bright) {
144+
public void setBrightness(float bright) {
145145
String fn = "/sys/class/leds/" + dev + "/brightness";
146146
if (bright < 0.0 || 1.0 < bright) {
147147
System.err.println("Brightness must be between 0.0 and 1.0.");

0 commit comments

Comments
 (0)