Skip to content

Add LoRa pins definition for DISCO_L072CZ_LRWAN1 #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2018

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Mar 5, 2018

With this PR, the LoRa module could be used with this library:
https://github.com/sandeepmistry/arduino-LoRa

Configuration to add in arduino-LoRa example sketches:

  SPI.setMISO(RADIO_MISO_PORT);
  SPI.setMOSI(RADIO_MOSI_PORT);
  SPI.setSCLK(RADIO_SCLK_PORT);
  SPI.setSSEL(RADIO_NSS_PORT);
  LoRa.setPins(RADIO_NSS_PORT, RADIO_RESET_PORT, RADIO_DIO_0_PORT);

Note that some PR are under review for arduino-LoRa library to be able
to change the SPI instance used (arduino-LoRa/#103 and arduino-LoRa/#105 ). So, instead of changing SPI pins, a new instance could be created:

  SPIClass LoRaSPI(RADIO_MOSI_PORT, RADIO_MISO_PORT, RADIO_SCLK_PORT, RADIO_NSS_PORT);
  LoRa.setSPI(LoRaSPI);
  LoRa.setPins(RADIO_NSS_PORT, RADIO_RESET_PORT, RADIO_DIO_0_PORT);

LoRa module tested with this library:
https://github.com/sandeepmistry/arduino-LoRa

Config to add in arduino-LoRa example sketches:
  SPI.setMISO(RADIO_MISO_PORT);
  SPI.setMOSI(RADIO_MOSI_PORT);
  SPI.setSCLK(RADIO_SCLK_PORT);
  SPI.setSSEL(RADIO_NSS_PORT);
  LoRa.setPins(RADIO_NSS_PORT, RADIO_RESET_PORT, RADIO_DIO_0_PORT);

Note that a PR is under review for arduino-LoRa library to be able
to change the SPI instance used. So, instead of changing SPI pins,
a new instance could be created:

  SPIClass LoRaSPI(RADIO_MOSI_PORT, RADIO_MISO_PORT, RADIO_SCLK_PORT, RADIO_NSS_PORT);
  LoRa.setSPI(LoRaSPI);
  LoRa.setPins(RADIO_NSS_PORT, RADIO_RESET_PORT, RADIO_DIO_0_PORT);

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
@fpistm fpistm added the enhancement New feature or request label Mar 5, 2018
@fpistm fpistm self-assigned this Mar 5, 2018
@biagiom
Copy link

biagiom commented Mar 5, 2018

Hi @fpistm,
I think that the title of the pull request should changed in "Add LoRa pins definition for DISCO_L072CZ_LRWAN1", in fact it refers to B-L475E-IOT01A Discovery board but changes are related to DISCO_L072CZ_LRWAN1.
Regards.

@fpistm fpistm changed the title Add LoRa pins definition for B-L475E-IOT01A Add LoRa pins definition for DISCO_L072CZ_LRWAN1 Mar 5, 2018
@fpistm
Copy link
Member Author

fpistm commented Mar 5, 2018

thanks @biagiom ;)

@biagiom
Copy link

biagiom commented Mar 5, 2018

you're welcome @fpistm !

@fpistm fpistm merged commit f06193a into stm32duino:master Mar 6, 2018
@fpistm fpistm deleted the BL072_LoRa branch March 6, 2018 08:31
@ucdos123456
Copy link

@fpistm sorry, can i ask is there any SSD1306 OLED example or library for DISCO_L072CZ_LRWAN1 ?

@fpistm
Copy link
Member Author

fpistm commented May 16, 2018

Hi,
This Issue was for Lora pins definition.
For primary support/question please enter a new topic on stm32duino.com.
Anyway, I've never tried SSD1306. Maybe you can try https://github.com/adafruit/Adafruit_SSD1306

@ucdos123456
Copy link

@fpistm thanks for so quick reply. i change I2C pin on board to PB8 & PB9, it's OK now. Thanks again.

benwaffle pushed a commit to benwaffle/Arduino_Core_STM32 that referenced this pull request Apr 10, 2019
Add LoRa pins definition for DISCO_L072CZ_LRWAN1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants