How do i write the code to have to led to be on high, half, and strobe
How do i write the code to have to led to be on high, half, and strobe
Perhaps take a look at this tutorial series:
It will show you how to turn a LED on and off, detect an input from a switch, use PWM to vary an LED's brightness and use loops and delays to turn a LED on and off (strobe). Plus, a whole lot more.
If you don't have an Arduino (you don't mention what platform you are working with) then you can use the on-line Arduino / breadboard simulator at circuits.io https://circuits.io/ to follow along with the tutorials and to prototype your project/assignment.