| Electronic Components Datasheet Search |
|
DFR0489 Datasheet(PDF) 6 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0489 Datasheet(HTML) 6 Page - DFROBOT |
|
6 / 8 page ![]() Sample Code ‐ Blink The default LED for FireBeetle Board-ESP8266 is D5 (IO2), input following code: // GPIO 2 (D5) has a LED_BLINK attached to it. Give it a name: int LED_BLINK = 2; // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin LED_BUILTIN as an output. pinMode(LED_BLINK, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(LED_BLINK, HIGH); // turn the LED on (HIGH is the voltage le vel) delay(1000); // wait for a second digitalWrite(LED_BLINK, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second } Note: ESP8266 has different pinmap in different development environment, For example: the LED connects IO2, which maps D5 in Arduino IDE It is totally different mean with 2 and D2 ! Sample Code ‐ Scan WiFi After you have installed the FireBeetle ESP8266 development environment, it will comes with a lot of sample code in Arduino IDE, you can find them in File > Examples. The follow sample code scans the around WiFi: /* * This sketch demonstrates how to scan WiFi networks. * The API is almost the same as with the WiFi Shield library, * the most obvious difference being the different file you need to include: */ #include "ESP8266WiFi.h" |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |