ผมใช้ code ตามนี่ครับ (พึ่งสั่งซื้อไปเองครับ)
#include <ESP8266WiFi.h>
const char* ssid = "3BB-SPN" ;
const char* password = "025140995" ;
int count = 0 ;
void setup() {
Serial.begin(9600) ;
delay(10) ;
Serial.println("\n") ;
Serial.print("Connecting to ") ;
Serial.println(ssid) ;
WiFi.begin(ssid, password) ;
while (WiFi.status() != WL_CONNECTED)
{
delay(500) ;
Serial.println("connect failed") ;
}
Serial.print("") ;
}
void loop()
{
count++ ;
Serial.println("WiFi Connected") ;
Serial.println(WiFi.localIP()) ;
Serial.println(count) ;
delay(1000) ;
}
ถ้าซื้อกับทางร้าน ArduinoALL Nodemcu จะเช็คให้ก่อนอย่างละเอียดว่าสามารถใช้งานได้ก่อนส่งให้ลูกค้าครับ
ที่ถามมา ดูจากรูปแล้วบอร์ดใช้งานได้ปกติ สามารถอัพโหลดโคดได้ ลองเช็คที่โคด หรือที Wifi อีกทีนะครับ
ลองโคดนี้ครับ ได้ผลยังไงแจ้งด้วย กระพริบหรือไม่
void setup() {
pinMode(2, OUTPUT); // Initialize the LED_BUILTIN pin as an output
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(2, LOW); // Turn the LED on (Note that LOW is the voltage level
// but actually the LED is on; this is because
// it is acive low on the ESP-01)
delay(500); // Wait for a second
digitalWrite(2, HIGH); // Turn the LED off by making the voltage HIGH
delay(500); // Wait for two seconds (to demonstrate the active low LED)
}