![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
LP Long Distance IR Vision Robot
Dependencies: max77650_charger_sample BufferedSerial SX1276GenericLib Adafruit-MotorShield NEO-6m-GPS MAX17055_EZconfig Adafruit_GFX USBDeviceHT Adafruit-PWM-Servo-Driver
Diff: PinMap.h
- Revision:
- 17:98f2528e8399
- Parent:
- 16:675f4d0ee9e9
- Child:
- 18:d5527ce82e6b
diff -r 675f4d0ee9e9 -r 98f2528e8399 PinMap.h --- a/PinMap.h Thu Feb 22 11:12:24 2018 +0000 +++ b/PinMap.h Fri Feb 23 12:57:25 2018 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 Helmut Tschemernjak + * Copyright (c) 2018 Helmut Tschemernjak * 30826 Garbsen (Hannover) Germany * Licensed under the Apache License, Version 2.0); */ @@ -21,6 +21,7 @@ #if defined(TARGET_DISCO_L072CZ_LRWAN1) +#define LED LED2 #define LORA_SPI_MOSI PA_7 #define LORA_SPI_MISO PA_6 @@ -56,10 +57,15 @@ #elif defined (HELTEC_STM32L4) +#define USER_BUTTON PH_3 // boot pin +#define LED PB_0 // red +#define LED2 PB_1 // green + #define POWER_VEXT PA_3 #define POWER_VEXT_ON 0 #define POWER_VEXT_OFF 1 + #define LORA_SPI_MOSI PA_7 #define LORA_SPI_MISO PA_6 #define LORA_SPI_SCLK PB_5 @@ -74,19 +80,22 @@ #elif defined(TARGET_NUCLEO_L432KC) // using the RFM95 board +// #define LED PB_3 // green +#define LED PB_5 // green -#define LORA_SPI_MOSI PC_12 -#define LORA_SPI_MISO PC_11 -#define LORA_SPI_SCLK PC_10 -#define LORA_CS PA_0 +#define LORA_SPI_MOSI PA_7 +#define LORA_SPI_MISO PA_6 +#define LORA_SPI_SCLK PB_5 +#define LORA_CS PA_4 #define LORA_RESET PA_1 -#define LORA_DIO0 PD_2 // DIO0=TxDone/RXDone/CADDone +#define LORA_DIO0 PA_0 // DIO0=TxDone/RXDone/CADDone #define LORA_DIO1 NC // #define LORA_DIO2 NC // #define LORA_DIO3 NC // #define LORA_DIO4 NC // #define LORA_DIO5 NC // + #else #error "unknown board"