Professional Documents
Culture Documents
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
Switch led
const int buttonPin = 2;
const int ledPin = 13;
void setup() {
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin, INPUT);
}
void loop() {
// read the state of the pushbutton value:
buttonState = digitalRead(buttonPin);
LCD DISPLAY
*/
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
void loop() {
// Turn off the display:
lcd.noDisplay();
delay(500);
// Turn on the display:
lcd.display();
delay(500);
}
Call gsm
const int ledpin = 13;
void setup()
{
pinMode(8,INPUT);
pinMode(ledpin,OUTPUT);
Serial.begin(9600);
delay(30000);
}
void callsomeone()
{
Serial.println("AT");
delay(900);
Serial.println("ATD9994442064;");
delay(20000);
Serial.println("ATH");
delay(6000);
}
void loop()
{
callsomeone();
//digitalWrite(ledpin, HIGH);