2018-11-25 16:35:36 +01:00
|
|
|
// clang-format off
|
2019-06-30 17:48:24 +02:00
|
|
|
// upload_speed 921600
|
|
|
|
// board esp32dev
|
2018-11-25 16:35:36 +01:00
|
|
|
|
2018-10-21 19:00:20 +02:00
|
|
|
#ifndef _FIPY_H
|
|
|
|
#define _FIPY_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2018-05-14 20:31:29 +02:00
|
|
|
// Hardware related definitions for Pycom FiPy Board
|
2018-05-14 18:14:59 +02:00
|
|
|
|
2018-07-14 20:07:33 +02:00
|
|
|
#define HAS_LORA 1 // comment out if device shall not send data via LoRa
|
|
|
|
|
2018-05-14 18:14:59 +02:00
|
|
|
#define CFG_sx1272_radio 1
|
2018-07-14 20:07:33 +02:00
|
|
|
#define HAS_LED NOT_A_PIN // FiPy has no on board LED, so we use RGB LED
|
|
|
|
#define HAS_RGB_LED GPIO_NUM_0 // WS2812B RGB LED on GPIO0
|
|
|
|
#define BOARD_HAS_PSRAM // use extra 4MB extern RAM
|
2018-05-14 18:14:59 +02:00
|
|
|
|
2018-10-21 22:24:45 +02:00
|
|
|
// Pins for LORA chip SPI interface, reset line and interrupt lines
|
2018-10-21 22:16:29 +02:00
|
|
|
#define LORA_SCK (5)
|
|
|
|
#define LORA_CS (18)
|
|
|
|
#define LORA_MISO (19)
|
|
|
|
#define LORA_MOSI (27)
|
|
|
|
#define LORA_RST LMIC_UNUSED_PIN
|
2018-11-20 15:02:37 +01:00
|
|
|
#define LORA_IRQ (23) // LoRa IRQ
|
2018-10-21 22:16:29 +02:00
|
|
|
#define LORA_IO1 (23) // Pin tied via diode to DIO0
|
|
|
|
#define LORA_IO2 LMIC_UNUSED_PIN
|
2018-05-14 18:14:59 +02:00
|
|
|
|
|
|
|
// select WIFI antenna (internal = onboard / external = u.fl socket)
|
2018-07-14 20:07:33 +02:00
|
|
|
#define HAS_ANTENNA_SWITCH GPIO_NUM_21 // pin for switching wifi antenna
|
|
|
|
#define WIFI_ANTENNA 0 // 0 = internal, 1 = external
|
2018-10-21 19:00:20 +02:00
|
|
|
|
|
|
|
#endif
|