serial communication php to arduino mega
i want to turn on led pin on arduino mega using php code. i’m using phpserial in order to communicate with the arduino board, but instead of turning on the new led, it turns on the last led.
below is my code, based on this thread