Skip to content

harlequin-tech/rf24HQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A library for the Nordic nrf24l01+ module.

This library provides functions for setting up and managing the radio module,
sending and receiving packets, and streaming data between radios.

The rf24 class implements the basic radio access for configuration, status, 
sending and receiving packets.

The RFStream class implements a full Stream class using an rf24 instance.

Example code to setup and use the hardware serial interface:

	rf24 rf(8,9,100,RF24_MAX_SIZE);

	void setup()
	{
	    rf.begin();
	    rf.setRxAddr(1, "addr1");
	    rf.setTxAddr("addr2");
	}

Send a packet:
	
	char data[RF24_MAX_SIZE] = "Hello world";

	rf.send(data, sizeof(data));

Receive a packet:

	char data[RF24_MAX_SIZE];

	if (rf.available()) {
	    rf.read(data, sizeof(data));
	}

Example sketches:
	rcscan.ino:    "Poor Man's 2.4GHz scanner". Scans the 2.4GHz channels
                       and displays a bar graph of approximate signal strengths.

About

An Arduino library for the Nordic nRF24L01+ RF transceiver.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages