Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated for php version 7 #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
WiringPi
========

An implementation of most of the Arduino Wiring functions for the Raspberry Pi
An implementation of most of the Arduino Wiring functions for the Raspberry Pi for PHP7

Git
===
Expand All @@ -11,7 +11,10 @@ You will need to clone this repository with the --recursive flag on git clone as
Building
========

You will need to first install php-dev or php5-dev
You will need to first install php-dev
```
sudo apt install php-dev
```

Then

Expand All @@ -21,7 +24,7 @@ make

This will give you a build folder with the wiringpi.so module, this needs to go in the relevant folder of your PHP installation.

Most likely somewhere in /usr/lib/php5/
Most likely somewhere in /usr/lib/php/

Alternatively you can:

Expand Down
14 changes: 3 additions & 11 deletions php_wiringpi.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.2
* Version 4.0.0
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
Expand All @@ -20,16 +20,6 @@ extern zend_module_entry wiringpi_module_entry;
# define PHP_WIRINGPI_API
#endif

#ifdef ZTS
#include "TSRM.h"
#endif

PHP_MINIT_FUNCTION(wiringpi);
PHP_MSHUTDOWN_FUNCTION(wiringpi);
PHP_RINIT_FUNCTION(wiringpi);
PHP_RSHUTDOWN_FUNCTION(wiringpi);
PHP_MINFO_FUNCTION(wiringpi);

ZEND_NAMED_FUNCTION(_wrap_wiringPiFailure);
ZEND_NAMED_FUNCTION(_wrap_wiringPiFindNode);
ZEND_NAMED_FUNCTION(_wrap_wiringPiNewNode);
Expand Down Expand Up @@ -173,4 +163,6 @@ ZEND_NAMED_FUNCTION(_wrap_scrollPhatPrintf);
ZEND_NAMED_FUNCTION(_wrap_scrollPhatPrintSpeed);
ZEND_NAMED_FUNCTION(_wrap_scrollPhatIntensity);
ZEND_NAMED_FUNCTION(_wrap_scrollPhatSetup);
PHP_MINIT_FUNCTION(wiringpi);

#endif /* PHP_WIRINGPI_H */
2 changes: 1 addition & 1 deletion wiringpi.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.2
* Version 4.0.0
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
Expand Down
Loading