Skip to content
a port of the arduino lightwaverf library to the raspberry pi
C Shell Makefile
Branch: master
Clone or download
Pull request Compare This branch is 10 commits ahead, 5 commits behind leachj:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
LICENSE
Makefile
README.md
lightwaverf.c
lightwaverf.h
lwrfd
lwrfmqtt.c
mqttsend.c
receive.c
send.c
send2.c

README.md

lightwaverf-pi

This code is a port of the excellent lightwaverf arduino library written by Lawrie Griffiths to the Raspberry Pi. It utilises the WiringPi library to do most of the GPIO work.

To use this library you will need a 433 Mhz transmitter and/or receiver attached to your Pi. The default is to pin 1 and 0 respectivly (wiring pi pin numbers not the actual processor numbers, see [http://wiringpi.com/pins/]). If you want to use different pin numbers these can be set in teh call to lw_setup().

To compile the code you will need wiring pi installed. Instructions can be found here. When this innstalled run make followed by sudo make install this will build the library and two example programs: send and receive. send <0,1> will send either a off or on signal the the code specified on the send.cpp file. receive will print out all of the code it receives. These command will also make the library available for other programs to use with the .so files in /usr/local/lib and the lightwaverf.h file into /usr/local/include

You can’t perform that action at this time.