Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RF24
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
RF24
Commits
2db0f2e6
Commit
2db0f2e6
authored
Sep 18, 2015
by
TMRh20
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into Updates
parents
cd52d61b
ded7e1bc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
1 deletion
+38
-1
RF24.cpp
RF24.cpp
+5
-0
RF24.h
RF24.h
+7
-0
RF24_config.h
RF24_config.h
+1
-1
library.json
library.json
+25
-0
No files found.
RF24.cpp
View file @
2db0f2e6
...
...
@@ -448,6 +448,11 @@ void RF24::setChannel(uint8_t channel)
write_register
(
RF_CH
,
rf24_min
(
channel
,
max_channel
));
}
uint8_t
RF24
::
getChannel
()
{
return
read_register
(
RF_CH
);
}
/****************************************************************************/
void
RF24
::
setPayloadSize
(
uint8_t
size
)
...
...
RF24.h
View file @
2db0f2e6
...
...
@@ -712,6 +712,13 @@ s *
*/
void
setChannel
(
uint8_t
channel
);
/**
* Get RF communication channel
*
* @return The currently configured RF Channel
*/
uint8_t
getChannel
(
void
);
/**
* Set Static Payload Size
*
...
...
RF24_config.h
View file @
2db0f2e6
...
...
@@ -116,7 +116,7 @@
// Arduino DUE is arm and does not include avr/pgmspace
#if defined (ARDUINO_ARCH_ESP8266)
#include <pgmspace.h>
#define PRIPSTR "%
S
"
#define PRIPSTR "%
s
"
#define printf_P printf
#elif defined(ARDUINO) && ! defined(__arm__) && !defined (__ARDUINO_X86__)
#include <avr/pgmspace.h>
...
...
library.json
0 → 100644
View file @
2db0f2e6
{
"name"
:
"RF24"
,
"keywords"
:
"rf, radio, wireless, spi"
,
"description"
:
"Optimized High Speed Driver for nRF24L01(+) 2.4GHz Wireless Transceiver"
,
"repository"
:
{
"type"
:
"git"
,
"url"
:
"https://github.com/TMRh20/RF24.git"
},
"include"
:
[
"*.h"
,
"*.c"
,
"*.cpp"
,
"arch/ATTiny/*"
,
"arch/Due/*"
,
"arch/Teensy/*"
,
"examples/*/*.ino"
],
"frameworks"
:
"arduino"
,
"platforms"
:
[
"atmelavr"
,
"atmelsam"
,
"teensy"
]
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment