When will an update be coming for this to work with 4.10 and Windows 10?
I’m trying to get an LED to turn on by walking through a TriggerBox volume in version 4.9, but the Arduino doesn’t seem to be reacting well to it. The RX light on the Arduino UNO lights up every time I enter and exit the volume, but my LED hooked up to pin 13 only lights up intermittently. The LED might light up on time, but it will lag for a couple seconds before turning off after exiting the volume. I’ll walk through the volume again, and it won’t light up, and it will light up 2 seconds later, and it will never turn off. I have to open the serial monitor for the LED to turn off. I’m using the code below:
void setup() {
Serial.begin(9600);
}
void loop() {
while (Serial.available() > 0)
{
if (Serial.readString() == "ON")
{
PORTB |= _BV(PB5);
}
if (Serial.readString() == "OFF")
{
PORTB &= ~_BV(PB5);
}
}
}
I used PORTB |= _BV(PB5) and PORTB &= ~_BV(PB5) in replacement of digitalWrite since I thought that might remedy the latency problems that I’m experiencing, but that didn’t fix anything either. I also tried changing USB ports to no avail.
Could anyone help me out with this or know what the problem might be?
