Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
Fixed #278; wiringPiSetup*: You must only call this once per program …
Browse files Browse the repository at this point in the history
…run.
  • Loading branch information
savageautomate committed Dec 1, 2016
1 parent ea7cce6 commit 39f7977
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ Copyright (C) 2012-2016 Pi4J

## IN DEVELOPMENT

2016-07-27 :: 1.2-SNAPSHOT
2016-12-01 :: 1.2-SNAPSHOT

* Updated to Java 8 (enhancement #203)
* Updated build dependencies/plugins to latest versions.
* Removed unsupported sub-projects (pi4j-temp, pi4j-service).
* Fixed #278: wiringPiSetup*: You must only call this once per program run.

## RELEASES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ public GpioLcdDisplay(int rows, int columns, Pin rsPin, Pin strobePin, Pin... da
this.columns = columns;
int bits[] = { 0,0,0,0,0,0,0,0 };

// set wiringPi interface for internal use
// we will use the WiringPi pin number scheme with the wiringPi library
com.pi4j.wiringpi.Gpio.wiringPiSetup();

// seed bit pin address array
for(int index = 0; index < 8; index++) {
if(index < dataPins.length)
Expand Down
2 changes: 1 addition & 1 deletion pi4j-example/src/main/java/LcdExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static void main(String args[]) throws InterruptedException {
final GpioController gpio = GpioFactory.getInstance();

// initialize LCD
final GpioLcdDisplay lcd = new GpioLcdDisplay(LCD_ROWS, // number of row supported by LCD
final GpioLcdDisplay lcd = new GpioLcdDisplay(LCD_ROWS, // number of row supported by LCD
LCD_COLUMNS, // number of columns supported by LCD
RaspiPin.GPIO_11, // LCD RS pin
RaspiPin.GPIO_10, // LCD strobe pin
Expand Down

0 comments on commit 39f7977

Please sign in to comment.