CC1101 help to connect and configure for ESP32 and Attiny88

Hi everyone,

I bought a CC1101 board(as07-m1101s) and it has those pins:
GND
GDO2
GDO1
MCE1
SCK
CSN
GDO0
VCC

I opened the ELECHOUSE_CC1101_SRC_DRV.cpp to see the pins used for connecting initially the board with the esp32:

void ELECHOUSE_CC1101::setSpi(void){
  if (spi == 0){
  #if defined __AVR_ATmega168__ || defined __AVR_ATmega328P__
  SCK_PIN = 13; MISO_PIN = 12; MOSI_PIN = 11; SS_PIN = 10;
  #elif defined __AVR_ATmega1280__ || defined __AVR_ATmega2560__
  SCK_PIN = 52; MISO_PIN = 50; MOSI_PIN = 51; SS_PIN = 53;
  #elif ESP8266
  SCK_PIN = 14; MISO_PIN = 12; MOSI_PIN = 13; SS_PIN = 15;
  #elif ESP32
  SCK_PIN = 18; MISO_PIN = 19; MOSI_PIN = 23; SS_PIN = 5;
  #else
  SCK_PIN = 13; MISO_PIN = 12; MOSI_PIN = 11; SS_PIN = 10;
  #endif
}
}

So for esp32:
GND → GND
GDO2 → 14 (basically it can be “any” pin)
GDO1 → 19 (is DGO1 the miso?)
MCE1 → NO IDEA?
SCLK → 18 (is SCLK same as SCK??)
CSN → 5 (is this the SS pin?)
GDO0 → 23 (IS GDO0 the mosi?)
VCC → VCC

For attiny88 since there is no special configuration for this processor can i just go on the last line and replace the pin numbers?

#else
  SCK_PIN = 13; MISO_PIN = 12; MOSI_PIN = 11; SS_PIN = 10;

would attiny88 fall into the else ?

Thank you

You failed to post a link to your hardware. An identically named board on alibaba.com doesn’t have an MCE1 pin but a MOSI pin (may be a very bad print, might show the quality of the whole board).
GD=1 is MISO, GDO2 is IRQ, CSN is chip select (SS), SCKL is SCK.

Post complete code if you need more help!

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.