You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting PWM output example...
[main] INFO com.pi4j.Pi4J - New auto context
[main] INFO com.pi4j.Pi4J - New context builder
[main] INFO com.pi4j.boardinfo.util.BoardInfoHelper - Detected OS: Name: Linux, version: 6.6.74+rpt-rpi-v8, architecture: aarch64
[main] INFO com.pi4j.boardinfo.util.BoardInfoHelper - Detected Java: Version: 21.0.5, runtime: 21.0.5+11-LTS, vendor: Azul Systems, Inc., vendor version: Zulu21.38+21-CA
[main] INFO com.pi4j.boardinfo.util.BoardInfoHelper - Detected board type MODEL_4_B by code: c03112
[main] INFO com.pi4j.context.impl.DefaultContext - Detected board model: Raspberry Pi 4 Model B
[main] INFO com.pi4j.context.impl.DefaultContext - Running on: Name: Linux, version: 6.6.74+rpt-rpi-v8, architecture: aarch64
[main] INFO com.pi4j.context.impl.DefaultContext - With Java version: Version: 21.0.5, runtime: 21.0.5+11-LTS, vendor: Azul Systems, Inc., vendor version: Zulu21.38+21-CA
[main] INFO com.pi4j.runtime.impl.DefaultRuntime - Initializing Pi4J context/runtime...
[main] INFO com.pi4j.runtime.impl.DefaultRuntime - Replacing provider I2C RaspberryPi I2C Provider with priority 0 with provider PiGpio I2C Provider with higher priority 100
[main] INFO com.pi4j.runtime.impl.DefaultRuntime - Replacing provider SPI RaspberryPi SPI Provider with priority 0 with provider PiGpio SPI Provider with higher priority 100
[main] INFO com.pi4j.runtime.impl.DefaultRuntime - Replacing provider DIGITAL_OUTPUT RaspberryPi Digital Output (GPIO) Provider with priority 0 with provider PiGpio Digital Output (GPIO) Provider with higher priority 100
[main] INFO com.pi4j.runtime.impl.DefaultRuntime - Replacing provider SERIAL RaspberryPi Serial Provider with priority 0 with provider PiGpio Serial Provider with higher priority 100
[main] INFO com.pi4j.runtime.impl.DefaultRuntime - Replacing provider DIGITAL_INPUT RaspberryPi Digital Input (GPIO) Provider with priority 0 with provider PiGpio Digital Input (GPIO) Provider with higher priority 100
[main] INFO com.pi4j.runtime.impl.DefaultRuntime - Replacing provider PWM RaspberryPi PWM Provider with priority 0 with provider PiGpio PWM Provider with higher priority 100
[main] INFO com.pi4j.platform.impl.DefaultRuntimePlatforms - adding platform to managed platform map [id=raspberrypi; name=RaspberryPi Platform; priority=5; class=com.pi4j.plugin.raspberrypi.platform.RaspberryPiPlatform]
[main] INFO com.pi4j.runtime.impl.DefaultRuntime - Pi4J context/runtime successfully initialized.
[main] ERROR com.pi4j.library.pigpio.impl.PiGpioNativeImpl - /sys/module/spidev/parameters/bufsiz (No such file or directory)
java.io.FileNotFoundException: /sys/module/spidev/parameters/bufsiz (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:213)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:152)
at java.base/java.util.Scanner.<init>(Scanner.java:645)
at com.pi4j.library.pigpio.impl.PiGpioNativeImpl.gpioInitialise(PiGpioNativeImpl.java:113)
at com.pi4j.library.pigpio.PiGpio.initialize(PiGpio.java:159)
at com.pi4j.plugin.pigpio.provider.pwm.PiGpioPwmProviderImpl.create(PiGpioPwmProviderImpl.java:73)
at com.pi4j.plugin.pigpio.provider.pwm.PiGpioPwmProviderImpl.create(PiGpioPwmProviderImpl.java:44)
at com.pi4j.context.Context.create(Context.java:363)
at com.pi4j.internal.IOCreator.create(IOCreator.java:58)
at com.pi4j.internal.IOCreator.create(IOCreator.java:116)
at Pi4JPWMLed.main(Pi4JPWMLed.java:49)
PWM duty cycle / frequency is: 50.0/800
PWM duty cycle / frequency is: 5.0/1500
PWM duty cycle / frequency is: 10.0/1500
PWM duty cycle / frequency is: 15.0/1500
PWM duty cycle / frequency is: 20.0/1500
PWM duty cycle / frequency is: 25.0/1500
PWM duty cycle / frequency is: 30.0/1500
PWM duty cycle / frequency is: 35.0/1500
PWM duty cycle / frequency is: 40.0/1500
PWM duty cycle / frequency is: 45.0/1500
PWM duty cycle / frequency is: 50.0/1500
PWM duty cycle / frequency is: 55.0/1500
PWM duty cycle / frequency is: 60.0/1500
PWM duty cycle / frequency is: 65.0/1500
PWM duty cycle / frequency is: 70.0/1500
PWM duty cycle / frequency is: 75.0/1500
PWM duty cycle / frequency is: 80.0/1500
PWM duty cycle / frequency is: 85.0/1500
PWM duty cycle / frequency is: 90.0/1500
PWM duty cycle / frequency is: 95.0/1500
PWM duty cycle / frequency is: 100.0/1500
The text was updated successfully, but these errors were encountered:
Exception is thrown when using this example: https://github.com/Pi4J/pi4j-jbang/blob/main/Pi4JPWMLed.java
It works, but throws an exception in the beginning:
The text was updated successfully, but these errors were encountered: