Hello!
I feel like this is a noob type of problem, here. Hopefully one of you can help point me in the right direction.
I've written an Arduino script to help my friend with ALS control his bed remote with his eyes. (using Serial and Digital Outs).
It worked to trigger 5 of the 9 Digital Outputs well. However, the other 4 digital outputs cause a crash when they are set to outputs.
I tested with simpler scripts, and found that if Irun any of the following commands,
the script will compile correctly, but then crash upon running.this line of code.
PinMode(3, OUTPUT);
PinMode(9, OUTPUT);
PinMode(10, OUTPUT);
PinMode(11, OUTPUT);
(similarly setting PinMode to INPUT still causes the crash).
This crash occurs both on PCDuino and a Blend Micro (the only two Arduino compatible devices that I have access to right now).
The only other lead that I have is that
these pins are associated with the PWM, and some to one of the SPI ports.
Can you help?
Sincerely,
Justin