Skip to content

Commit c3591c5

Browse files
authored
Merge pull request #74 from Pi4J/release/2.7.1
DRAFT: Release/2.8.0
2 parents e1966b2 + 921259c commit c3591c5

File tree

4 files changed

+39
-6
lines changed

4 files changed

+39
-6
lines changed

content/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Welcome to Pi4J
44

55
## Welcome to Pi4J
66

7-
**Latest release: V2.7.0 (2024-10-03, see [Release Notes](/about/release-notes/)).**
7+
**Latest release: V2.8.0 (2025-01-28, see [Release Notes](/about/release-notes/)).**
88

99
This project is intended to provide **a friendly object-oriented I/O API and implementation libraries for Java Programmers** to access the **full I/O capabilities of the Raspberry Pi platform**. This project abstracts the low-level native integration and interrupt monitoring to enable Java programmers to **focus on implementing their application business logic**.
1010

content/about/release-notes.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,28 @@ weight: 40
55

66
All releases of Pi4J V.2 are listed on [github.com/Pi4J/pi4j-v2/releases](https://github.com/Pi4J/pi4j-v2/releases).
77

8+
## 2025-01-28 - V2.8.0
9+
10+
* Several code and JavaDoc improvements by adding the checkstyle plugin.
11+
* Improvements in loading the Mock providers to build and test Pi4J on a Raspberry Pi.
12+
* Issue [#421](https://github.com/Pi4J/pi4j-v2/issues/421): Unable to detect board type. Several improvements have been integrated in the board detection to prevent errors when reading the board code.
13+
* Added to `BoardModel`:
14+
* Issue [#406](https://github.com/Pi4J/pi4j-v2/issues/406): Old boards not auto detected. Missing codes have been added for Model 1 boards.
15+
* The Raspberry Pi Compute 5. Only the board code `c04180` for the 4Gb has been confirmed by Jeff Geerling. The other types are not documented yet. We assume they are `a04180`, `b04180`, and `d04180`, similar to the Compute 4, but will adjust whenever more info is available.
16+
* The Raspberry Pi 500 with the board code `d04190`, again confirmed by Jeff who received an evaluation device.
17+
* The Raspberry Pi 5 with 16GB memory with the board code `e04171` (thanks again Jeff).
18+
* Added to `BoardReading`:
19+
* Pull request [#432](https://github.com/Pi4J/pi4j-v2/pull/432): Add Support for Throttled State Parsing and Retrieval
20+
* Improvements in the LinuxFS provider (for Raspberry Pi 5):
21+
* Pull Request [#433](https://github.com/Pi4J/pi4j-v2/pull/433): Enhance LinuxFsI2CBus validation with detailed exception messages and comprehensive Javadocs.
22+
* Pull Request [#434](https://github.com/Pi4J/pi4j-v2/pull/434): Add SPI support in LinuxFS. No `sudo` is needed to use SPI.
23+
24+
Thanks to contributions by [@mpilone](https://github.com/mpilone), [@cniesen](https://github.com/cniesen), [@geerlingguy](https://github.com/geerlingguy), [@dariuszzbyrad](https://github.com/dariuszzbyrad), [@taartspi](https://github.com/taartspi), [@eitch](https://github.com/eitch), [@fdelporte](https://github.com/fdelporte).
25+
26+
Special thanks to [Dariusz Zbyrad](https://github.com/dariuszzbyrad) for joining the project and improving the Maven builds with a wrapper for more consistency, for example, in the [pi4j-example-devices repository](https://github.com/Pi4J/pi4j-example-devices), and other contributions. And also special thanks to [Mike Pilone](https://github.com/mpilone) for the initial work for LinuxFS SPI.
27+
28+
All changes: https://github.com/Pi4J/pi4j-v2/compare/2.7.0...2.8.0
29+
830
## 2024-10-03 - V2.7.0
931

1032
* Libraries are loaded depending on the platform, by calling `BoardInfoHelper.runningOnRaspberryPi()`.

content/documentation/providers/linuxfs.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ weight: 93
44
tags: ["LinuxFS", "PWM", "I2C"]
55
---
66

7-
The current implementation of the LinuxFS plugin implements a file based I2C and PWM provider. The file based I2C provider opens
7+
The current implementation of the LinuxFS plugin implements a file based I2C, SPI, and PWM provider. The file based I2C provider opens
88
`/dev/i2c-1` using a `RandomAccessFile` to perform I2C reads and writes. The file based PWM provider opens
99
`/sys/class/pwm/pwmchip?` using a `RandomAccessFile` to perform PWM operations.
1010

@@ -15,6 +15,7 @@ The Linuxfs provider linuxfs-pwm requires minimum kernel Bullseye 6.1.21 and Boo
1515
Providers in the LinuxFS plugin:
1616

1717
* linuxfs-i2c
18+
* linuxfx-spi
1819
* linuxfs-pwm
1920
* Under construction
2021
* linuxfs-digital-input
@@ -40,7 +41,9 @@ To use the LinuxFS provider include the following dependencies:
4041
</dependency>
4142
```
4243

43-
And then one can get access to the I2C provider as follows:
44+
## I2C
45+
46+
Example on how to use I2C with LinuxFS:
4447

4548
``` java
4649
Context pi4j = Pi4J.newAutoContext();
@@ -60,7 +63,17 @@ try (I2C tca9534Dev = i2CProvider.create(i2cConfig)) {
6063
pi4j.shutdown();
6164
```
6265

63-
And then one can get access to the PWM provider as follows:
66+
## SPI
67+
68+
The buffer size for this SPI implementation is 4096 bytes. This can be configured in `config.txt`:
69+
70+
* Debian Bullseye OS: `/boot/config.txt`
71+
* Raspberry Pi OS, based on Debian Bookworm: `/boot/firmware/config.txt`
72+
73+
## PWM
74+
75+
Example on how to use PWM with LinuxFS:
76+
6477
```java
6578
/**
6679
* Builds a new PWM configuration for the buzzer

content/documentation/providers/pigpio.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Pi5 At the present time the PiGpio implementation does not support the new Pi5
1212
- This new Pi5 RP1 chip will require a large development effort. There is no known plan for this develoment.
1313
```
1414

15-
1615
Providers in the PiGpio plugin:
1716

1817
* pigpio-digital-input
@@ -33,7 +32,6 @@ WARN com.pi4j.library.pigpio.impl.PiGpioNativeImpl
3332
- PIGPIO ERROR: PI_INIT_FAILED; pigpio initialisation failed
3433
```
3534

36-
3735
To use the PiGpio provider include the following dependencies:
3836

3937
``` xml

0 commit comments

Comments
 (0)