close

建構中(以下內容待整理)..............

 

 

/*
* Blink
* Turns on the onboard LED on for one second, then off for one second, repeatedly.
* This uses delay() to pause between LED toggles.
*/
 
void setup() {
pinMode(BUILTIN_LED, OUTPUT); // initialize onboard LED as output
}
 
void loop() {
digitalWrite(BUILTIN_LED, HIGH); // turn on LED with voltage HIGH
delay(1000); // wait one second
digitalWrite(BUILTIN_LED, LOW); // turn off LED with voltage LOW
delay(1000); // wait one second
}

 

/*
pins_arduino.h - Pin definition functions for Arduino
Part of Arduino - http://www.arduino.cc/
 
Copyright (c) 2007 David A. Mellis
Modified for ESP8266 platform by Ivan Grokhotkov, 2014-2015.
 
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
 
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
 
You should have received a copy of the GNU Lesser General
Public License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place, Suite 330,
Boston, MA 02111-1307 USA
 
$Id: wiring.h 249 2007-02-03 16:52:51Z mellis $
*/
 
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
 
#include "../generic/common.h"
 
static const uint8_t SDA = 4;
static const uint8_t SCL = 5;
 
static const uint8_t LED_BUILTIN = 2;
static const uint8_t BUILTIN_LED = 2;
 
static const uint8_t D0 = 16;
static const uint8_t D1 = 5;
static const uint8_t D2 = 4;
static const uint8_t D3 = 0;
static const uint8_t D4 = 2;
static const uint8_t D5 = 14;
static const uint8_t D6 = 12;
static const uint8_t D7 = 13;
static const uint8_t D8 = 15;
static const uint8_t RX = 3;
static const uint8_t TX = 1;
 
#endif /* Pins_Arduino_h */
arrow
arrow
    文章標籤
    ESP8266 WEMOS D1 R2 arduino
    全站熱搜
    創作者介紹
    創作者 阿賓 的頭像
    阿賓

    火焰小賓的部落格

    阿賓 發表在 痞客邦 留言(0) 人氣()