<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>My shiny padlet by Sultan Mohamed Salim Abdalla Altaha Al Tunaiji</title>
      <link>https://padlet.com/26128762/zaflvo1nqpcy0wb7</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2024-10-07 08:14:22 UTC</pubDate>
      <lastBuildDate>2024-11-18 08:40:31 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title></title>
         <author>26128762</author>
         <link>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3156597000</link>
         <description><![CDATA[<p>void setup()</p><p>{</p><p>pinMode(2, OUTPUT); // set digital pin 13 to output</p><p>pinMode(3, OUTPUT); // set digital pin 13 to output</p><p>pinMode(4, OUTPUT); // set digital pin 13 to output</p><p>pinMode(5, OUTPUT); // set digital pin 13 to output</p><p>pinMode(6, OUTPUT); // set digital pin 13 to output</p><p>pinMode(7, OUTPUT); // set digital pin 13 to output</p><p>pinMode(8, OUTPUT); // set digital pin 13 to output</p><p>pinMode(9, OUTPUT); // set digital pin 13 to output</p><p>}</p><p>void loop()</p><p>{</p><p>digitalWrite(2, HIGH); // turn on digital pin 13 delay(500); // pause for one second</p><p>delay(500);</p><p>digitalWrite(2, LOW); // turn on digital pin 13 delay(500); // pause for one second</p><p><br></p><p>digitalWrite(3, HIGH); // turn on digital pin 13 delay(500); // pause for one second</p><p>delay(500);</p><p>digitalWrite(3, LOW); // turn on digital pin 13 delay(500); // pause for one second</p><p><br></p><p>digitalWrite(4, HIGH); // turn on digital pin 13 delay(500); // pause for one second</p><p>delay(500);</p><p>digitalWrite(4, LOW); // turn on digital pin 13 delay(500); // pause for one second</p><p><br></p><p>digitalWrite(5, HIGH); // turn on digital pin 13 delay(500); // pause for one second</p><p>delay(500);</p><p>digitalWrite(5, LOW); // turn on digital pin 13 delay(500); // pause for one second</p><p><br></p><p>digitalWrite(6, HIGH); // turn on digital pin 13 delay(500); // pause for one second</p><p>delay(500);</p><p>digitalWrite(6, LOW); // turn on digital pin 13 delay(500); // pause for one second</p><p><br></p><p>digitalWrite(7, HIGH); // turn on digital pin 13 delay(500); // pause for one second</p><p>delay(500);</p><p>digitalWrite(7, LOW); // turn on digital pin 13 delay(500); // pause for one second</p><p><br></p><p>digitalWrite(8, HIGH); // turn on digital pin 13 delay(500); // pause for one second</p><p>delay(500);</p><p>digitalWrite(8, LOW); // turn on digital pin 13 delay(500); // pause for one second</p><p><br></p><p>digitalWrite(9, HIGH); // turn on digital pin 13 delay(500); // pause for one second</p><p>delay(500);</p><p>digitalWrite(9, LOW); // turn on digital pin 13 delay(500); // pause for one second</p><p><br></p><p>digitalWrite(2, HIGH);</p><p>digitalWrite(3, HIGH);</p><p>digitalWrite(4, HIGH);</p><p>digitalWrite(5, HIGH);</p><p>digitalWrite(6, HIGH);</p><p>digitalWrite(7, HIGH);</p><p>digitalWrite(8, HIGH);</p><p>digitalWrite(9, HIGH);</p><p>delay(500);</p><p>digitalWrite(2, LOW);</p><p>digitalWrite(3, LOW);</p><p>digitalWrite(4, LOW);</p><p>digitalWrite(5, LOW);</p><p>digitalWrite(6, LOW);</p><p>digitalWrite(7, LOW);</p><p>digitalWrite(8, LOW);</p><p>digitalWrite(9, LOW);</p><p>delay(500);</p><p>digitalWrite(2, HIGH);</p><p>digitalWrite(3, HIGH);</p><p>digitalWrite(4, HIGH);</p><p>digitalWrite(5, HIGH);</p><p>digitalWrite(6, HIGH);</p><p>digitalWrite(7, HIGH);</p><p>digitalWrite(8, HIGH);</p><p>digitalWrite(9, HIGH);</p><p>delay(500);</p><p>digitalWrite(2, LOW);</p><p>digitalWrite(3, LOW);</p><p>digitalWrite(4, LOW);</p><p>digitalWrite(5, LOW);</p><p>digitalWrite(6, LOW);</p><p>digitalWrite(7, LOW);</p><p>digitalWrite(8, LOW);</p><p>digitalWrite(9, LOW);</p><p><br></p><p>}</p><p><br></p>]]></description>
         <enclosure url="" />
         <pubDate>2024-10-07 08:32:06 UTC</pubDate>
         <guid>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3156597000</guid>
      </item>
      <item>
         <title></title>
         <author>al7er2008</author>
         <link>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3160595837</link>
         <description><![CDATA[<p>// Define the LED pins</p><p>Int ledPins[] - (2, 3, 4, 5); // Pins where the LEDs are connecte</p><p>void setup() f</p><p>// Set each pin as an OUTPUT</p><p>Int i - 0; while (i &lt; 4) (</p><p>pinMode(ledPins [#], OUTPUT);</p><p>i**;</p><p>｝</p><p>void loop() {</p><p>// Turn LEDs on</p><p>int i - 0; while (1 &lt; 4) (</p><p>digitalwrite(ledPins[4], HIGH); // Turn each LED on delay (500); // Wait for 500ms i**;</p><p>}</p><p>// Turn LEDs off</p><p>1 - 6;</p><p>while (1 &lt; 4)</p><p>{</p><p>digitalwrite(ledPins[1], LOw); // Turn each LED off delay(508); // Wait for 500ms</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-10-09 07:44:52 UTC</pubDate>
         <guid>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3160595837</guid>
      </item>
      <item>
         <title></title>
         <author>26128762</author>
         <link>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3169796013</link>
         <description><![CDATA[<pre><code class="language-cpp">int ledPin1=3;
int ledPin2=5;
int ledPin3=6;
int ledPin4=9;
int ledPin5=10;
int ledPin6=11;

void setup() {
  // put your setup code here, to run once:
  pinMode(ledPin1, OUTPUT);
  pinMode(ledPin2, OUTPUT);
  pinMode(ledPin3, OUTPUT);
  pinMode(ledPin4, OUTPUT);
   pinMode(ledPin5, OUTPUT);
  pinMode(ledPin6, OUTPUT);

}

void loop() {
for (int brightness =0; brightness&lt;=255; brightness++){
  analogWrite(ledPin1, brightness);
  analogWrite(ledPin2, 255 - brightness);
  analogWrite(ledPin3, brightness);
  analogWrite(ledPin4, 255 -brightness);
   analogWrite(ledPin5, brightness);
  analogWrite(ledPin6, 255 -brightness);
delay(10);
 
}

for (int brightness =255; brightness &gt;=0; brightness--){
   analogWrite(ledPin1, 255 - brightness);
  analogWrite(ledPin2,  brightness);
  analogWrite(ledPin3,  255 - brightness);
  analogWrite(ledPin4,  brightness);
  analogWrite(ledPin5,  255 - brightness);
  analogWrite(ledPin6,  brightness);
  delay(10);
}
}
</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-10-15 08:06:23 UTC</pubDate>
         <guid>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3169796013</guid>
      </item>
      <item>
         <title></title>
         <author>26128762</author>
         <link>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3169860384</link>
         <description><![CDATA[<pre><code class="language-cpp">.
int ledPin=9;


void setup() {
  // put your setup code here, to run once:
pinMode(buttonPin, INPUT);
pinMode(pushPin, INPUT);
pinMode(ledPin, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
if (digitalRead(buttonPin) ==HIGH){
  digitalWrite(ledPin, HIGH);

}


if (digitalRead(pushPin ==LOW)){
  digitalWrite(ledPin, LOW);
}
}
</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-10-15 08:53:33 UTC</pubDate>
         <guid>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3169860384</guid>
      </item>
      <item>
         <title>int blue = 6;</title>
         <author>26128762</author>
         <link>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3173942425</link>
         <description><![CDATA[<p>int blue2 = 11;</p><p>int yellow = 10;</p><p>int green = 5;</p><p>int knob = A0;</p><p><br/></p><p>void setup() {</p><p>  pinMode(blue, OUTPUT);</p><p>  pinMode(yellow, OUTPUT);</p><p>  pinMode(green, OUTPUT);</p><p>  pinMode(blue2, OUTPUT);</p><p>  pinMode(knob, INPUT);</p><p>}</p><p><br/></p><p>void loop() {</p><p>  </p><p>  int potValue = analogRead(knob);</p><p>  int brightness = map(potValue, 0, 1023, 0, 255);</p><p>  analogWrite(blue, brightness);</p><p><br/></p><p>  </p><p>  analogWrite(blue2, brightness);</p><p><br/></p><p>  </p><p>  analogWrite(green, brightness);</p><p><br/></p><p>  </p><p>  analogWrite(yellow, brightness);</p><p>}</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-10-17 08:17:11 UTC</pubDate>
         <guid>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3173942425</guid>
      </item>
      <item>
         <title>int blue = 6;</title>
         <author>26128762</author>
         <link>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3173950517</link>
         <description><![CDATA[<p>int blue2 = 11;</p><p>int yellow = 10;</p><p>int green = 5;</p><p>int knob = A0;</p><p><br/></p><p>void setup() {</p><p>  pinMode(blue, OUTPUT);</p><p>  pinMode(yellow, OUTPUT);</p><p>  pinMode(green, OUTPUT);</p><p>  pinMode(blue2, OUTPUT);</p><p>  pinMode(knob, INPUT);</p><p>}</p><p><br/></p><p>void loop() {</p><p>  int potValue = analogRead(knob);</p><p>  int brightness = map(potValue, 0, 1023, 0, 255);</p><p>  int low = map(potValue, 1023, 0, 0, 255); // Corrected this line</p><p>  </p><p>  analogWrite(blue, brightness);</p><p>  analogWrite(blue2, brightness);</p><p>  analogWrite(green, low);</p><p>  analogWrite(yellow, low);</p><p>}</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-10-17 08:23:12 UTC</pubDate>
         <guid>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3173950517</guid>
      </item>
      <item>
         <title></title>
         <author>26128762</author>
         <link>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3183349529</link>
         <description><![CDATA[<pre><code class="language-cpp">#include &lt;Keypad.h&gt;

const byte ROWS = 4; // four rows
const byte COLS = 4; // four columns

// Define the symbols on the buttons of the keypad
char hexaKeys[ROWS][COLS] = {
  {'1','2','3','A'},
  {'4','5','6','B'},
  {'7','8','9','C'},
  {'*','0','#','D'}
};

byte rowPins[ROWS] = {13, 12, 11, 10}; // Connect to the row pinouts of the keypad
byte colPins[COLS] = {9, 8, 7, 6}; // Connect to the column pinouts of the keypad

// Initialize an instance of the Keypad class
Keypad customKeypad = Keypad(makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS); 

const String specialCode = "626"; // Code to turn on lights
const String stopCode = "000"; // Code to turn off lights

void setup() {
  Serial.begin(9600);
  pinMode(5, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(3, OUTPUT);
}

void loop() {
  String input = ""; // To collect user input
  while (input.length() &lt; 3) { // Loop until 3 digits are entered
    char customKey = customKeypad.getKey();
    if (customKey) {
      Serial.print("Key Pressed: ");
      Serial.println(customKey);
      input += customKey; // Collect input

      // Immediate feedback for each key press
      if (input == specialCode) {
        Serial.println("Special Code Entered: All Lights On");
        digitalWrite(3, HIGH);
        digitalWrite(4, HIGH);
        digitalWrite(5, HIGH);
        return; // Exit loop and reset input
      } else if (input == stopCode) {
        Serial.println("Stop Code Entered: All Lights Off");
        digitalWrite(3, LOW);
        digitalWrite(4, LOW);
        digitalWrite(5, LOW);
        return; // Exit loop and reset input
      }
    }
  }

  // If 3 characters are entered without a match
  Serial.println("Input exceeded 3 characters. Resetting.");
}</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-10-23 08:57:56 UTC</pubDate>
         <guid>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3183349529</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3200131823</link>
         <description><![CDATA[<pre><code class="language-cpp">#include &lt;Keypad.h&gt;

const byte ROWS = 4; // four rows
const byte COLS = 4; // four columns

// Define the symbols on the buttons of the keypad
char hexaKeys[ROWS][COLS] = {
  {'1','2','3','A'},
  {'4','5','6','B'},
  {'7','8','9','C'},
  {'*','0','#','D'}
};

byte rowPins[ROWS] = {13, 12, 11, 10}; // Connect to the row pinouts of the keypad
byte colPins[COLS] = {9, 8, 7, 6}; // Connect to the column pinouts of the keypad

// Initialize an instance of the Keypad class
Keypad customKeypad = Keypad(makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS); 

const String turnOnCode = "626"; // Code to turn on all lights
const String flashCode = "000"; // Code to make lights flash
const String wrongCode = "123"; // Code to turn off only one light

void setup() { 
  Serial.begin(9600);
  pinMode(5, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(3, OUTPUT);
}

void loop() {
  String input = ""; // To collect user input
  while (input.length() &lt; 3) { // Loop until 3 digits are entered
    char customKey = customKeypad.getKey();
    if (customKey) {
      Serial.print("Key Pressed: ");
      Serial.println(customKey);
      input += customKey; // Collect input

      // Check for code to turn on all lights
      if (input == turnOnCode) {
        Serial.println("Turn On Code Entered: All Lights On");
        digitalWrite(3, HIGH);
        digitalWrite(4, HIGH);
        digitalWrite(5, HIGH);
        return; // Exit loop and reset input
      } 
      // Check for code to make lights flash
      else if (input == flashCode) {
        Serial.println("Flash Code Entered: Flashing Lights");
        flashLights(); // Call function to flash lights
        return; // Exit loop and reset input
      } 
      // Check for wrong code to turn off only one light
      else if (input == wrongCode) {
        Serial.println("Wrong Code Entered: One Light Off");
        digitalWrite(3, LOW); // Turn off one specific light
        return; // Exit loop and reset input
      }
    }
  }

  // If 3 characters are entered without a match
  Serial.println("Input exceeded 3 characters. Resetting.");
}

// Function to flash the lights
void flashLights() {
  for (int i = 0; i &lt; 10; i++) { // Flash 10 times
    digitalWrite(3, HIGH);
    digitalWrite(4, HIGH);
    digitalWrite(5, HIGH);
    delay(500); // Wait for half a second
    digitalWrite(3, LOW);
    digitalWrite(4, LOW);
    digitalWrite(5, LOW);
    delay(500); // Wait for half a second
  }
}</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-11-04 08:51:15 UTC</pubDate>
         <guid>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3200131823</guid>
      </item>
      <item>
         <title></title>
         <author>26128762</author>
         <link>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3221796984</link>
         <description><![CDATA[<p>void setup() {</p><p>pinMode(ledPin, OUTPUT); // Set the LED pin as an output</p><p>digitalWrite(ledPin, HIGH); // Turn the LED on</p><p>}</p><p><br/></p><p>void loop() {</p><p>// Nothing in the loop - LED stays on</p><p>}</p>]]></description>
         <enclosure url="" />
         <pubDate>2024-11-18 08:40:30 UTC</pubDate>
         <guid>https://padlet.com/26128762/zaflvo1nqpcy0wb7/wish/3221796984</guid>
      </item>
   </channel>
</rss>
