File tree Expand file tree Collapse file tree
content/documentation/io-examples Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -278,17 +278,17 @@ public class BuzzerComponent extends Component {
278278 .shutdown(0 )
279279 .build();
280280 }
281- /**
282- * Builds a new PWM configuration for the buzzer using linuxfs-pwm
283- * @param pi4j Pi4J context
284- * @param address Channel
285- * @return PWM configuration
286- */
287- protected static PwmConfig buildPwmConfig (Context pi4j , int address ) {
288- return Pwm . newConfigBuilder(pi4j)
289- .id(" Channel" + address )
281+
282+ /* * Builds a new PWM configuration for the buzzer using linuxfs-pwm
283+ * @param pi4j Pi4J context
284+ * @param channel Channel
285+ * @return PWM configuration
286+ */
287+ protected static PwmConfig buildPwmConfig (Context pi4j , int channel ) {
288+ return Pwm . newConfigBuilder(pi4j)
289+ .id(" Channel" + channel )
290290 .name(" Buzzer" )
291- .address(address )
291+ .address(channel )
292292 .pwmType(PwmType . HARDWARE )
293293 .provider(" linuxfs-pwm" )
294294 .initial(0 )
You can’t perform that action at this time.
0 commit comments