-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLightwaveRX.h
More file actions
35 lines (28 loc) · 770 Bytes
/
LightwaveRX.h
File metadata and controls
35 lines (28 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* LightwaveRF library for Raspberry Pi and Arduino. Utilising 433 MHz
* receiver to interpret LightwaveRF remote controls.
*
* @author James Reuss (jamesreuss.co.uk)
* @copyright James Reuss 2014
*/
#ifndef LIGHTWAVERX_H
#define LIGHTWAVERX_H
#ifdef ARDUINO
#include <Arduino.h>
#define uint8_t byte
#define bool boolean
#else
#include <wiringPi.h>
#include <stdint.h>
#include <string.h>
#endif
/**
* Setup RX pins and interrupts
* @param rxPin The pin to use for RX data
* @param interrupt The pin to use for RX interrupt
*/
void lwrx_setup(int rxPin, int interruptPin);
bool lwrx_gotMessage();
bool lwrx_getMessage(uint8_t *buffer, uint8_t length);
bool lwrx_getMessageRaw(uint8_t *buffer);
#endif // LIGHTWAVERX_H