Pi4J VERSION 1.0 IS RELEASED!

173 views
Skip to first unread message

Robert Savage

unread,
Apr 22, 2015, 3:52:56 PM4/22/15
to pi...@googlegroups.com

PI4J VERSION 1.0 RELEASE

The much anticipated Version 1.0 of the Pi4J Library is finally released!

http://www.savagehomeautomation.com/projects/pi4j-version-10-released.html

The road to release 1.0 has been a long one, but 1.0 offers many new features, bug fixes and improved stability over the earlier releases.  We feel that the project has been in incubation long enough and is ready for an official 1.0 launch.
Pi4J Version 1.0 is also available in Maven Central.  <<View in Maven Central>>

NOTABLE VERSION 1.0 CHANGES:

SPECIAL THANKS:

Thank You to all the Pi4J users, contributors, testers, and tinkerers for all your help and support to continue making Pi4J the go-to library for Java access to the Raspberry Pi's hardware interfaces. 


PI4J RELATED LINKS: 

Michele Esposito

unread,
May 25, 2015, 8:22:10 PM5/25/15
to pi...@googlegroups.com
Hi Robert,
I have a problem with lib Pi4J and Raspberry Pi 2.

No compilation error, but I can not  turn on the LED.
I am just starting out with Java.
The LED is connected to pin 12 
If I send a command from the shell to the GPIO, 12 the LED lights up, but if I use the library PI4 (GPIO_01)j, the LED does not work ..

Can you help me to understand ?
In the porject i use the lib 1.0

i download the jar file (## RELEASES 2015-04-18 :: 1.0) and i add on NetBeans project
Thanks
Michele



---- this is my code ---

import com.pi4j.io.gpio.GpioController;
import com.pi4j.io.gpio.GpioFactory;

import com.pi4j.io.gpio.GpioPinDigitalOutput;
import com.pi4j.io.gpio.PinState;
import com.pi4j.io.gpio.RaspiPin;
import com.pi4j.io.gpio.*;

public class ControlGpioExample {
    
    public static void main(String[] args) throws InterruptedException {
        
        System.out.println("<--Pi4J--> GPIO Control Example ... started.");
        
        // create gpio controller
        final GpioController gpio = GpioFactory.getInstance();
        GpioPinDigitalOutput myLed = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_01,"My LED",PinState.LOW);
       
        System.out.println("--> GPIO state should be: ON");
        myLed.setState(PinState.HIGH);
       
 Thread.sleep(5000);

Il titolare del trattamento dei dati è TPR Service S.r.l. con sede in Maddaloni (CE) – via Cornato, 136.

(D.Lgs. 30/06/2003, n. 196, art. 130)

In ogni momento l'interessato, destinatario del messaggio, ha diritto di opporsi al trattamento per l'invio di comunicazioni analoghe inviando un messaggio all'indirizzo pri...@tprservice.it. L'interessato può, inoltre, esercitare tutti i diritti di accesso sui propri dati previsti dall'articolo 7 del D.Lgs 196/03, tra i quali i diritti di rettifica, aggiornamento e cancellazione, inviando un messaggio all'indirizzo pri...@tprservice.it.
Le informazioni contenute nella presente comunicazione e relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente alle persone o all'ente sopraindicato. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario e' assolutamente proibita sia ai sensi dell'art. 616 c.p. sia ai sensi della vigente legge 196/03. Se avete ricevuto questo messaggio per errore, vi preghiamo di distruggerlo e di informarci inviando un messaggio all'indirizzo pri...@tprservice.it.

Reply all
Reply to author
Forward
0 new messages