
USB Driver
operatingsystemyouareusing,clickthebuttonbelow.Afterdecompressingthecompressedpackage,selectthe
installationpackagecorrespondingtotheoperatingsystemvalueforinstallation.
tobeinstalledfromtheAppStoreandidentifieddevelopers



download.



https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json

3.Navigateto Tools -> Board: -> Boards Manager...



6. Visit Github ( https://github.com/m5stack/M5Tough ), downloadtheM5Toughlibrary,andplaceitinthe

Bluetooth serialportfunction
Open theArduinoIDEandopentheexampleprogram File -> Examples -> BluetoothSerial -
> SerialToSerialBT . Connectthedevicetothecomputerandselectthecorrespondingporttoburn.After
completion,thedevicewillautomaticallyrunBluetooth,andthedevicenameis ESP32test . Atthistime,usethe
BluetoothserialportsendingtoolonthePCtorealizethetransparenttransmissionofBluetoothserialdata.



#include "BluetoothSerial.h"
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
void setup() {
Serial.begin(115200);
SerialBT.begin("ESP32test"); //Bluetoothdevicename
Serial.println("Thedevicestarted,nowyoucanpairitwithbluetooth!");
void loop() {
if (Serial.available()) {
SerialBT.write(Serial.read());
if (SerialBT.available()) {
Serial.write(SerialBT.read());
delay(20);

devicetothecomputerandselectthecorrespondingporttoburn.Aftercompletion,thedevicewillautomatically
runtheWiFiscan,andthecurrentWiFiscanresultcanbeobtainedthroughtheserialportmonitorthatcomeswith
theArduino.

#include "WiFi.h"
Serial.begin(115200);
WiFi.mode(WIFI_STA);
WiFi.disconnect();
delay(100);
Serial.println("Setupdone");
Serial.println("scanstart");

//WiFi.scanNetworkswillreturnthenumberofnetworksfound
int n = WiFi.scanNetworks();
Serial.println("scandone");
if (n == 0) {
Serial.println("nonetworksfound");
Serial.print(n);
Serial.println("networksfound");
for (int i = 0; i < n; ++i) {
Serial.print(i + 1);
Serial.print(WiFi.SSID(i));
Serial.print("(");
Serial.print(WiFi.RSSI(i));
Serial.print(")");
Serial.println((WiFi.encryptionType(i) == WIFI_AUTH_OPEN)?"":"*");
delay(10);
Serial.println("");
delay(5000);

Any Changes or modifications not expressly approved by the party responsible for
compliance could void the user’s authority to operate the equipment.
This device complies with part 15 of the FCC Rules. Operation is subject to the
(2) This device must accept any interference received, including interference that
may cause undesired operation.
This equipment complies with FCC radiation exposure limits set forth for an
uncontrolled environment .This equipment should be installed and operated with
minimum distance 20cm between the radiator& your body.
Class B digital device, pursuant to part 15 of the FCC Rules. These limits are
residential installation. This equipment generates uses and can radiate radio
frequency energy and, if not installed and used in accordance with the instructions,
guarantee that interference will not occur in a particular installation. If this
equipment does cause harmful interference to radio or television reception, which
can be determined by turning the equipment off and on, the user is encouraged to
try to correct the interference by one or more of the following measures:
—Reorient or relocate the receiving antenna.
—Increase the separation between the equipment and receiver.
—Connect the equipment into an outlet on a circuit different from that to which the
receiver is connected.
—Consult the dealer or an experienced radio/TV technician for help.
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.