My newest project requires wireless communication between 2 arduino boards and I have decided to use CC1101 wireless modules. First, I wanted to try a really simple code with an easy library, that I have found on electronoobs.com. It's called "ELECHOUSE_CC1101.h". My only problem is quite a big one, it doesn't work. The Arduino IDE doesn't seem to recognize the library at all, since the colour of the font when including the library doesn't change to orange as it should. I would really like to use this library, since it looks very simple and easy to operate. It would be amazing, if someone could tell me, what the mistake is.
The code, that I have tried:
The library, that I am referring to:
I am using Arduino IDE 1.8.13 and the wiring is done exactly as shown.
You shouldn't put much importance on the color of things in the Arduino IDE. The keyword coloration is provided by a file created by the library author.
Some library authors make one of these files.
Some make one but then forget to keep it updated.
Some make one but fail to correctly format it so the IDE is unable to recognize it.
Some don't bother with it at all.
The author of the "ELECHOUSE_CC1101" library falls into the latter category. So it is normal and expected that there won't be any special coloration for the library's keywords.
The important thing is what the compiler thinks of the code. The colors are purely cosmetic.
chrlack:
The Arduino IDE doesn't seem to recognize the library at all, since the colour of the font when including the library doesn't change to orange as it should.
The colours of keywords in the sketches will only be set to particual colours if the library has a keywords.txt file defining all the colours. That file is missing in that libary.
The colours of keywords have no effect on the compiler.
Thank you for replying, I did not know that at all. I thought this was kind of a standard thing, that all libraries feature. Well, now that we've got that out of the way, I have to find the real reason, why nothing works.