LSatan / SmartRC-CC1101-Driver-Lib

This driver library can be used for many libraries that use a simple RF ASK module, with the advantages of the cc1101 module. It offers many direct setting options as in SmartRF Studio and calculates settings such as MHz directly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Init" or "setSpiPin" first

frspp opened this issue · comments

commented

Hi!

Readme is confusing:

ELECHOUSE_cc1101.Init(); //Initialize the cc1101. Must be set first!
ELECHOUSE_cc1101.setSpiPin(SCK, MISO, MOSI, CSN); //custom SPI pins. Set your own Spi Pins.Or to switch between multiple cc1101. Must be set before init and before changing the cc1101.

So which should be first: .init() or .setSpiPin()?

commented

Found answer: .setSpiPin first! Comments should be clarified.

Source: #118

commented

made a pull request for readme