nRF24 / RF24

OSI Layer 2 driver for nRF24L01 on Arduino & Raspberry Pi/Linux Devices
https://nrf24.github.io/RF24
GNU General Public License v2.0
2.22k stars 1.02k forks source link

[Question] how to incorporate in C-project? #624

Closed focussing closed 4 years ago

focussing commented 4 years ago

Hello, I have a project which consists only of C files, and I need to incorporate your beautiful C++ library. What would be the best way to do this?

Looking forward to hearing from you.

Avamander commented 4 years ago

You would have to rewrite it in C, unfortunately. There have been efforts at C-ifying the library, but it's a lot of work and there's not too much demand. You can see the previous effort here: https://github.com/nRF24/RF24/pull/330 Maybe you could salvage it and make a new PR?

focussing commented 4 years ago

Thanks for answering. I took an IDE and simply put all .c and .cpp files in one directory. Then make creates a well working executable.