An example project for the Heltec Turtle LoRa board (STM32L4 and SX1276 chips). The projects is only supported for the Nucleo-L432KC board platform in the mbed online and offline compiler environment. Visit www.radioshuttle.de (choose Turtle board) for instructions. Note that most source files and libraries are open source, however some files especially the RadioShuttle core protocol is copyrighted work. Check header for details.

Dependencies:   mbed BufferedSerial SX1276GenericLib OLED_SSD1306 HELIOS_Si7021 NVProperty RadioShuttle-STM32L4 USBDeviceHT

Committer:
Helmut64
Date:
Fri Jan 18 15:59:46 2019 +0000
Revision:
0:3b6c2ce051a6
Child:
3:b5052f3fa638
inital checkin

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Helmut64 0:3b6c2ce051a6 1 /*
Helmut64 0:3b6c2ce051a6 2 * Copyright (c) 2018 HELIOS Software GmbH
Helmut64 0:3b6c2ce051a6 3 * 30826 Garbsen (Hannover) Germany
Helmut64 0:3b6c2ce051a6 4 * Licensed under the Apache License, Version 2.0);
Helmut64 0:3b6c2ce051a6 5 */
Helmut64 0:3b6c2ce051a6 6 #include "main.h"
Helmut64 0:3b6c2ce051a6 7
Helmut64 0:3b6c2ce051a6 8
Helmut64 0:3b6c2ce051a6 9 DigitalOut myled(LED);
Helmut64 0:3b6c2ce051a6 10
Helmut64 0:3b6c2ce051a6 11
Helmut64 0:3b6c2ce051a6 12 int main() {
Helmut64 0:3b6c2ce051a6 13 #ifdef HELTEC_STM32L4
Helmut64 0:3b6c2ce051a6 14 DigitalOut vext(POWER_VEXT);
Helmut64 0:3b6c2ce051a6 15 vext = POWER_VEXT_ON;
Helmut64 0:3b6c2ce051a6 16 #endif
Helmut64 0:3b6c2ce051a6 17 /*
Helmut64 0:3b6c2ce051a6 18 * inits the Serial or USBSerial when available (230400 baud).
Helmut64 0:3b6c2ce051a6 19 * If the serial uart is not is not connected it swiches to USB Serial
Helmut64 0:3b6c2ce051a6 20 * blinking LED means USBSerial detected, waiting for a connect.
Helmut64 0:3b6c2ce051a6 21 * It waits up to 30 seconds for a USB terminal connections
Helmut64 0:3b6c2ce051a6 22 */
Helmut64 0:3b6c2ce051a6 23 InitSerial(30*1000, &myled);
Helmut64 0:3b6c2ce051a6 24 dprintf("Welcome to the SX1276GenericLib");
Helmut64 0:3b6c2ce051a6 25
Helmut64 0:3b6c2ce051a6 26 dprintf("Starting a simple LoRa PingPong");
Helmut64 0:3b6c2ce051a6 27 SX1276PingPong();
Helmut64 0:3b6c2ce051a6 28 }