Disables the PWM output @webref
()
| 93 | * @webref |
| 94 | */ |
| 95 | public void clear() { |
| 96 | if (NativeInterface.isSimulated()) { |
| 97 | return; |
| 98 | } |
| 99 | |
| 100 | String fn = String.format("/sys/class/pwm/%s/pwm%d/enable", chip, channel); |
| 101 | int ret = NativeInterface.writeFile(fn, "0"); |
| 102 | if (ret < 0) { |
| 103 | throw new RuntimeException(NativeInterface.getError(ret)); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | |
| 108 | /** |
no test coverage detected