Hello everyone,I’m a user from Taiwan ,so please forgive my poor English.
I want make a device that using 2 different PWM to control two diffrient LED by an app create by APP Inventor 2 slider.
Slider 1 use to control LED1,Slider 2 use to control LED2.
When I change slider 1 position , app send text"v",and then send number to setting PWM value,then send "e" to stop control,same logic as Slide1. change slider 2 position , app send text"s",and then send number to setting PWM value,then send "e" to stop control.
My problem is when I control one of the LED ,the other one LED also blink without control
Images of code are worthless. And the code is incomplete. Please properly post the well formatted and complete code. Please read the forum guidelines to see how to properly post code and some information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in a code block.
One thing that I can tell you is that your method of receiving serial data is flawed. The serial input basics tutorial shows robust ways to send and receive serial data.