things-nyc / arduino-lmic

LoraWAN-in-C library, adapted to run under the Arduino environment
26 stars 11 forks source link

Update src/hal/hal.cpp to fix uart_putchar (void *, const char *buf, size_t len) and hal_printf_init() Heltec Wifi LoRa v2 (ESP32) #29

Closed EtoTen closed 6 years ago

EtoTen commented 6 years ago

Fixing: https://github.com/mcci-catena/arduino-lmic/issues/140 tested with Heltec Wifi LoRa v2 (ESP32) and BSFrance LoRa32u4 II FYI pin settings for Heltec are as following:

const lmic_pinmap lmic_pins = { .nss = 18, .rxtx = LMIC_UNUSED_PIN, .rst = 14, .dio = {26, 35, 34}, .rxtx_rx_active = 0, .rssi_cal = 8, .spi_freq = 8000000 };