Skip to content
Snippets Groups Projects
Commit bb7e99bc authored by Siddhi Bodhe's avatar Siddhi Bodhe
Browse files

week9updates

parent 351478f7
No related branches found
No related tags found
No related merge requests found
Pipeline #469088 passed
File added
File added
......@@ -207,14 +207,7 @@
<p><FONT COLOR="black">
A 16 by 2 LCD (Liquid Crystal Display) is a small screen that shows text. It can display up to 16 characters across and has 2 rows of text, making a total of 32 characters visible at once. These displays are handy for projects where you need to show words or numbers clearly, like in digital clocks or small gadgets. They often have a backlight for easy viewing in different lighting. You can connect them to devices like Arduino or Raspberry Pi to control what shows up on the screen, making them useful for DIY electronics and learning projects.
<br>
<b>3)RGB led </b>
</FONT></p>
<div>
<img width="900" height="550"src="img/week-09/03.jpg">
</div><br>
<p><FONT COLOR="black">
An RGB LED is a special kind of light that can change color. It has three tiny LEDs inside—one for red, one for green, and one for blue. By adjusting how bright each LED shines, you can mix these colors to make almost any color you want. This makes RGB LEDs great for things like colorful lights in rooms or signs that need to show different messages with different colors. They're also used in gadgets and DIY projects where you want cool lighting effects that can change easily.
</FONT></p>
<div>
<img width="900" height="550"src="img/week-09/04.png">
</div><br>
......@@ -337,53 +330,7 @@ void loop() {<br>
<source src="video/week-09/03.mp4" type="video/mp4">
</video></center>
</div>
<p><FONT COLOR="black">
<b>3) RGB LED</b><br>
<b>Code:-</b><br>
<code>
const int redPin = 25;<br>
const int greenPin = 26;<br>
const int bluePin = 32;<br>
<br>
void setup() {<br>
pinMode(redPin, OUTPUT);<br>
pinMode(greenPin, OUTPUT);<br>
pinMode(bluePin, OUTPUT);<br>
}<br>
<br>
void loop() {<br>
// Set all LEDs off initially<br>
digitalWrite(redPin, LOW);<br>
digitalWrite(greenPin, LOW);<br>
digitalWrite(bluePin, LOW);<br>
<br>
// Display different colors by turning on/off individual LEDs<br>
digitalWrite(redPin, HIGH); // Red<br>
delay(1000);<br>
<br>
digitalWrite(redPin, LOW);<br>
digitalWrite(greenPin, HIGH); // Green<br>
delay(1000);<br>
<br>
digitalWrite(greenPin, LOW);<br>
digitalWrite(bluePin, HIGH); // Blue<br>
delay(1000);<br>
}<br>
</code><br>
<b>Output:-</b>
</FONT></p>
<div>
<center>
<video width="700" height="450" controls>
<source src="video/week-09/04.mp4" type="video/mp4">
</video></center>
</div>
</div>
<!--Documentation End-->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment