A smart remote using the sparkfun IR transmitter and receiver. The program also uses a web server to show the buttons on a mobile platform.
Dependencies: EthernetInterface HTTPServer RemoteIR SDFileSystem mbed-rpc mbed-rtos mbed
Fork of SmartRemoteClean by
IR.h
- Committer:
- sarvagyavaish
- Date:
- 2013-12-04
- Revision:
- 15:c8074f5f241a
- Parent:
- 4:36e0aa194b45
File content as of revision 15:c8074f5f241a:
//PROTOTYPES #include "mbed.h" #include "ReceiverIR.h" #include "TransmitterIR.h" int receive(RemoteIR::Format *format, uint8_t *buf, int bufsiz, int timeout = 100); int transmit(RemoteIR::Format format, uint8_t *buf, int bitlength, int timeout = 100); void display_status(char *status, int bitlength); void display_format(RemoteIR::Format format); void display_data(uint8_t *buf, int bitlength);