Skip to content

Commit 38ca109

Browse files
committed
Content improvements
1 parent 1f9c26b commit 38ca109

1 file changed

Lines changed: 5 additions & 23 deletions

File tree

content/documentation/providers/_index.md

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,11 @@ weight: 90
44
tags: ["GpioD", "LinuxFS", "PiGpio"]
55
---
66

7-
Providers are extensible service modules responsible for the concrete implementation of a specific I/O type.
8-
The providers also allow to separate the internal logic of the Pi4J core from the concrete implementation of the board
9-
on which they are used.
7+
Providers are extensible service modules responsible for the concrete implementation of a specific I/O type. The providers also allow separating the internal logic of the Pi4J core from the concrete implementation of the board on which they are used.
108

11-
Pi4J 2.0 - 2.4: Multiple providers for the same I/O type can be loaded into a Pi4J context concurrently. For example a
12-
"RaspberryPi-DigitalInputProvider" and "GertBoard-DigitalInputProvider" could both be loaded and both providing digital
13-
inputs at the same time.
9+
As of Pi4J 2.5 multiple providers for the same I/O type is no longer supported. During the Context initialization it will ensure only a single provider for an I/O type is loaded. In addition, the Mock Providers are not loaded unless expressly requested when creating the Context. [See Create Context](../create-context/)
1410

15-
As of Pi4J 2.5 multiple providers for the same I/O type is no longer supported. During the Context initialization it will
16-
ensure only a single provider for an I/O type is loaded. In addition the Mock Providers are not loaded unless
17-
expressly requested when creating the Context. [See Create Context](../create-context/)
18-
19-
Current supported providers:
11+
## Available Providers
2012

2113
* [FFM](/documentation/providers/ffm/)
2214
* Was introduced in Pi4J 4.0.0
@@ -51,19 +43,9 @@ Current supported providers:
5143
* Needs to run as `sudo`
5244
* 03/22/2024 Does not support Raspberry Pi 5
5345

54-
Possible future providers:
55-
* Pi5 SPI, under construction.
56-
* Pi5 Serial. At present the intent is no Pi4j Serial provider on Pi5. As an alternative see [jSerialComm](http://fazecast.github.io/jSerialComm/).
57-
* RemoteProvider to control the I/O from a remote device e.g. through websockets
58-
59-
Pi4J 2.5 Provider not found
60-
* Pi4J 2.5 ensuring a single provider for an I/O type is loaded may result in the provider your code references not being
61-
found because it was replaced by a higher priority provider.
62-
If you encounter this case, you can remove the unwanted provider plugin from your pom.xml file dependencies. Then after a clean
63-
and rebuild of your program the unwanted provider will no longer be loaded.
64-
46+
## Check Loaded Providers
6547

66-
* PrettyPrint loaded providers. After creating the Context the following code will print the currently loaded provider for each I/O type.
48+
After creating the `Context` the following code will print the currently loaded provider for each I/O type.
6749
```
6850
System.out.println("-------------------------------------------------");
6951
System.out.println("PI4J PROVIDERS");

0 commit comments

Comments
 (0)