PWM FROM Arduino?

Hello,
How to make pwm from arduino code?
25%
50%
100%
at pin 3

analogWrite(3, 64); // set pin 3 to 25% PWM

pinMode(3, OUTPUT);

there is need of this function??

ritesh291991: pinMode(3, OUTPUT);

there is need of this function??

No, analogWrite() automatically sets the pin mode to output. But to leave that line of code in is ok, it won't cause any issues and it is a good habit to have.

how to make gui based project?

What sort of GUI? What sort of project? What does this have to do with "PWM from Arduino"?

Steve

ritesh291991: how to make gui based project?

Step 1 would be to spend a good bit of time reading and learning to code. It's far more than can be explained in a forum post. When you have some specific questions come back and ask.

What sort of GUI? What sort of project? What does this have to do with "PWM from Arduino"?

Steve

like how to start GUI with Arduino?

Depends on the intent of your GUI. Graphic User Interface, would imply a screen of some sort, and buttons or a joystick or touchscreen or pan-tilt sensor or something to navigate around that screen. So I guess the question is back on you - what are you really after?