TinyCircuits Forum

TinyCircuits Products => TinyDuino Processors & TinyShields => Topic started by: lolsnub on November 18, 2022, 10:04:35 PM

Title: Need help with bluetooth interrupt signal
Post by: lolsnub on November 18, 2022, 10:04:35 PM
Hi, I am still new with tiny durino so still dont understand how to change the interrupt signal from R2 to R3.

I had used this guide https://learn.tinycircuits.com/Communication/Bluetooth-Low-Energy_TinyShield_Tutorial/ and shown:

NOTE:
The interrupt signal can be changed from pin 2 to pin 3 by removing resistor R2 and soldering it to position R3.

I had done the soldering to R3 but how to change the default from R2 to R3 base on the guide?

Title: Re: Need help with bluetooth interrupt signal
Post by: lennevia on November 21, 2022, 03:13:17 PM
Hello, I believe you emailed in to our tech support, but I'll copy the answer here for anyone in the future with the same question.

For the software change, you will need to edit the STBLE library and change the pin number in the code to match pin 3 instead of pin 2. In the STBLE library that is downloaded with the example, navigate to STBLE/src/Arduino_hal.h – in this file, you will change BNRG_SPI_EXTI_PIN's value to 3 instead of 2.

Attached to this message is a screenshot of the highlighted variable - you will need to be logged in to the forum to see the attachment.

Cheers,
Réna