Hi Josh,
Regarding the Port interface: I wanted to run our emitter through the LED port so that I can control the sensitivity of our photogate (we don't need LED's since we're using video monitors).
I need to initialize the LED at startup in the firmware, it looks like the code will relate to the PWM, however there are two locations for this, one is pwmWrite (which looks like it may control the Bpod status LED) and the other relates to the SPI, which I recall from our previous communications relates to ethernet communication.
My guess is that you initialize the emitter in the startup to always be on, and I'd like to do that for the LED port (then use the potentiometer to adjust sensativity.)
I saw in a previous thread that the emitter is on Ethernet jack 4, LED on jack 3.
Question 1: Is the emitter initialized at startup to always be on. If so then in the setup I could just swap the emitter line for the LED line and it would turn the LED port on at startup.
Question 2:, if (1) isn't true, then do you have any suggestions for coding this in the firmware?
If you have any concerns with doing this let me know.
Thanks!