Joy-it NodeMCU ESP32 Manual Download Page 5

www.joy

-

it.net

 

Pascalstr. 8 47506 Neukirchen

-

Vluyn

 

 

 

4. USAGE

 

Your  NodeMCU  ESP32  is  now  ready  to  use.  Simply  connect it  with  an  USB 

cable to your computer.

 

The installed libraries provide many examples to gain you some insight into 

the module.

 

These examples can be found in your Ardunio IDE in File  

→ 

Example 

→ 

ESP32.

 

 

The fastest and easiest way to test your NodeMCU ESP is the recall of device 

number. Copy the following code or use the code example GetChipID from 

the Arduino IDE:

 

uint64_t

 chipid;  

 

 

void

 

setup

() {

 

 

Serial.begin(

115200

);

 

}

 

 

void

 

loop

() {

 

 

chipid=ESP.getEfuseMac();

//The chip ID is essentially its MAC address(length:6bytes)

 

 

Serial.printf("ESP32 Chip ID = %04X",(

uint16_t

)(chipid>>

32

));

//print High 2 bytes

 

 

Serial.printf("%08X

\n

",(

uint32_t

)chipid);

//print Low 4bytes.

 

 
 

delay(

3000

);

 

 

}

 

To upload, click on the upload button from the Arduino IDE and hold down 

the BOOT button on the SBC NodeMCU ESP32. The upload is completed until 

the writing has reached 100% and you willbe asked  to reboot (hard reset 

viaRTS pin 

…) 

with the EN key.

 

You can see the output of the test on the serial monitor.

 

Reviews: