I am want to use some of my CubeCell boards to talk to my TTGO board.
I can’t find any examples of Cube using Lora.h
board = ttgo-lora32-v21
SX1276[868/915Mhz]
The TTGO Lora PingPong config is configured like this using the Lora.h lib:
#include <SPI.h>
#include <LoRa.h>
#include <Wire.h>
#include "images.h"
#include <Arduino.h>
#include "SSD1306.h"
#define SCK 5 // GPIO5 -- SX1276's SCK
#define MISO 19 // GPIO19 -- SX1276's MISO
#define MOSI 27 // GPIO27 -- SX1276's MOSI
#define SS 18 // GPIO18 -- SX1276's CS
#define RST 23 // GPIO14 -- SX1276's RESET
#define DI0 33 // GPIO26 -- SX1276's IRQ(Interrupt Request)
#define BAND 915E6
#define RADIO_TYPE SX1276
SPI.begin(SCK,MISO,MOSI,SS);
LoRa.setPins(SS,RST,DI0);
The Heltec PingPong is configured using the LoraWan.h lib:
#include "LoRaWan_APP.h"
#include "Arduino.h"
#ifndef LoraWan_RGB
#define LoraWan_RGB 0
#endif
#define RF_FREQUENCY 915000000 // Hz
#define TX_OUTPUT_POWER 5 // dBm
#define LORA_BANDWIDTH 0 // [0: 125 kHz,
// 1: 250 kHz,
// 2: 500 kHz,
// 3: Reserved]
#define LORA_SPREADING_FACTOR 7 // [SF7..SF12]
#define LORA_CODINGRATE 1 // [1: 4/5,
// 2: 4/6,
// 3: 4/7,
// 4: 4/8]
#define LORA_PREAMBLE_LENGTH 8 // Same for Tx and Rx
#define LORA_SYMBOL_TIMEOUT 0 // Symbols
#define LORA_FIX_LENGTH_PAYLOAD_ON false
#define LORA_IQ_INVERSION_ON false
#define RX_TIMEOUT_VALUE 1000
#define BUFFER_SIZE 30 // Define the payload size here