mirror of
https://github.com/processing/processing4.git
synced 2026-01-27 10:21:26 +01:00
I/O: Rename LED.set() to LED.setBrightness()
This commit is contained in:
@@ -141,7 +141,7 @@ public class LED {
|
||||
* Sets the brightness
|
||||
* @param bright 0.0 (off) to 1.0 (maximum)
|
||||
*/
|
||||
public void set(float bright) {
|
||||
public void setBrightness(float bright) {
|
||||
String fn = "/sys/class/leds/" + dev + "/brightness";
|
||||
if (bright < 0.0 || 1.0 < bright) {
|
||||
System.err.println("Brightness must be between 0.0 and 1.0.");
|
||||
|
||||
Reference in New Issue
Block a user