/* Blink3 1. Turn ON LEDs connected to pins 6-13 one by one every 50ms 2. Turn OFF all LEDs at the same time 3. Turn ON LEDs from pin 13 to pin 6 one by one every 700ms 4. Turn OFF LEDs from pin 6 to 13 one by one every 50ms akhen of electronicslab.ph 4/10/2012 */void setup() { for(int ledPin=6; ledPin<=13; ledPin++) { pinMode(ledPin, OUTPUT); }}void loop() { for(int value=6; value<=13; value++) { digitalWrite(value, HIGH); delay(50); } delay(300); for(int value=13; value>=6; value--) { digitalWrite(value, LOW); } delay(700); for(int value=13; value>=6; value--) { digitalWrite(value, HIGH); delay(700); } for(int value=6; value<=13; value++) { digitalWrite(value, LOW); delay(50); } delay(2000);}
// include the library code:#include <LiquidCrystal.h>// initialize the library with the numbers of the interface pinsLiquidCrystal lcd(12, 11, 5, 4, 3, 2);void setup() { // set up the LCD's number of columns and rows: lcd.begin(16, 2); // Print a message to the LCD. lcd.print("electronicslabPH");}void loop() { // set the cursor to column 0, line 1 // (note: line 1 is the second row, since counting begins with 0): lcd.setCursor(0, 1); // print the number of seconds since reset: lcd.print(millis()/1000);}
Here's the output:
Nagawa ko din yung sample ni Sis Akhenpero di ko mapagana yung sample ni Sis maldihtah13
wow ganda ng board!punta ako bukas eGizmo to get my very first Gizduino.... yun lang muna to get my feet wet into MCU... pag na intindihan ko na tsaka ako kukuha niyan...
Go sir! Ang pogi nga ng mga boards. Magkano lahat sir?
wapak! ESD alert!!!