Hi, first off I apologize because I am new to coding.
I'm working on this project using two simblee chips that are sending data to one another via bluetooth. One is attached to the CPU and one is freestanding. I want to control an led attached to the freestanding chip by sending control signals from matlab through the attached chip.
To do this I believe that I need to use interrupts so that the chip can continuously receive data while also sending data. Sorry if I'm not explaining this well.
Anyways, to do this, I'm trying to use the attachPinInterrupt that is supposed to be equivalent to arduino's attachInterrupt(). I need to use a pin as an "interruptpin" to interrupt the code whenever it's LOW (or HIGH). However, I want to artificially control whether or not the pin is HIGH or LOW through digitalWrite. But I am having trouble turning my input pin to LOW through digitalWrite. It always stays HIGH.
In short, I am wondering if it is possible to manually control whether or not an input pin is HIGH or LOW without actually connecting it to ground?