Skip to content
/ i2c Public
forked from samjking/i2c

PHP extension port of the i2c tools

Notifications You must be signed in to change notification settings

wertyzp/i2c

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

i2c

I created this extension so that PHP on a Raspberry Pi can directly interact with a microcontroller using I2C. It is not a complete extension, it just implements the methods that I need in my project.

I have created this by using the source code from https://github.com/groeck/i2c-tools . If you want extra functionality it's a relatively straight forward task to adapt code from there.

To use this you will need a copy of the PHP source code. You also need autoconf, bison, libxml2-dev and libi2c-dev installed.

The most basic steps to get this installed are:

git clone git://github.com/php/php-src cd php-src/ext git clone git://gtihub.com/samjking/i2c cd .. ./buildconf --force ./configure --enable-i2c make make install

or to install it as an add on extension to PHP

cd php-src/ext/i2c phpize ./configure make make install

Then add : extension=i2c.so to your php.ini file

Run "php -m" to see if i2c is listed as an installed module

About

PHP extension port of the i2c tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 69.6%
  • M4 18.1%
  • PHP 9.3%
  • JavaScript 3.0%