Difference between revisions of "XIAO-ESP32S3"
(→Liens externes) |
|||
| (32 intermediate revisions by 4 users not shown) | |||
| Line 11: | Line 11: | ||
| − | [[File:Arduino-IDE XIAO-ESP32S3 1.PNG|500px]] | + | [[File:Arduino-IDE XIAO-ESP32S3 1.PNG|500px]]<br> |
| − | + | https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json<br><br> | |
| − | [[File:Arduino-IDE XIAO-ESP32S3 3.PNG|500px]]<br><br> | + | [[File:Arduino-IDE XIAO-ESP32S3 2.PNG|500px]]<br> |
| + | |||
| + | Navigate to Tools > Board > Boards Manager..., type the keyword <b>esp32</b> in the search box, select the latest version of esp32, and install it.<br> | ||
| + | |||
| + | [[File:Arduino-IDE XIAO-ESP32S3 3.PNG|500px]]<br> | ||
| + | |||
| + | search for xiao in the development board on the left. select <b>XIAO_ESP32S3</b><br> | ||
[[File:Arduino-IDE XIAO-ESP32S3 4.PNG|500px]]<br><br> | [[File:Arduino-IDE XIAO-ESP32S3 4.PNG|500px]]<br><br> | ||
| Line 26: | Line 32: | ||
[https://wiki.seeedstudio.com/xiao_esp32s3_getting_started https://wiki.seeedstudio.com/xiao_esp32s3_getting_started] <font color=red>wiki</font><br> | [https://wiki.seeedstudio.com/xiao_esp32s3_getting_started https://wiki.seeedstudio.com/xiao_esp32s3_getting_started] <font color=red>wiki</font><br> | ||
| + | |||
| + | |||
| + | https://mjrovai.github.io/XIAO_Big_Power_Small_Board-ebook/ | ||
| + | |||
| + | https://mjrovai.github.io/XIAO_Big_Power_Small_Board-ebook/XIAO%E2%80%93Big-Power,-Small-Board.pdf | ||
| + | |||
| + | XIAO: Big Power, Small Board | Mastering Arduino and TinyML<br> | ||
| + | |||
| + | Author : Lei Feng, Marcelo Rovai | Published : January 10, 2024<br> | ||
=== Hello World! [Code] === | === Hello World! [Code] === | ||
| + | |||
| + | ---- | ||
| + | <br> | ||
| + | <i>Bibliothèque</i> <b>u8g2</b> https://wiki.myows.top/index.php?title=U8g2_for_Seeeduino_boards#Setup | ||
| + | <br>U8x8lib | ||
[[File:Grove Base for XIAO 1.PNG|200px]] | [[File:Grove Base for XIAO 1.PNG|200px]] | ||
| Line 34: | Line 54: | ||
Grove Base for XIAO<br> | Grove Base for XIAO<br> | ||
| − | XIAO-ESP32S3<br> | + | XIAO-ESP32S3 <br> |
| − | OLED-Display-0-96-SSD1315<br> | + | OLED-Display-0-96-SSD1315 - Port <b>i2c</b> ✅<br> |
<b>Hello World!</b> | <b>Hello World!</b> | ||
| Line 57: | Line 77: | ||
} | } | ||
</pre> | </pre> | ||
| + | |||
| + | ---- | ||
=== Internet_Clock [Code] === | === Internet_Clock [Code] === | ||
| + | |||
| + | [[File:Grove Base for XIAO 1.PNG|200px]] | ||
| + | [[File:XIAO-ESP32S3 1.PNG|125px]] | ||
| + | [[File:OLED Display 96x96 recto.jpg|150px]] | ||
| + | |||
| + | Grove Base for XIAO<br> | ||
| + | XIAO-ESP32S3 📶<br> | ||
| + | OLED Display 1.12 - Port <b>I2c</b> <br> | ||
| + | |||
| + | [[Internet_Clock-XIAO-OLED_Display_1.12| Internet_Clock-XIAO-OLED_Display_1.12]]<br> | ||
| + | |||
| + | sur l'écran série on a l'heure, mais que du texte sur l'OLED | ||
| + | |||
| + | <pre> | ||
| + | #include <NTPClient.h> | ||
| + | #include <Arduino.h> | ||
| + | #include <U8g2lib.h> | ||
| + | #include <SPI.h> | ||
| + | #include <Wire.h> | ||
| + | |||
| + | // change next line to use with another board/shield | ||
| + | // #include <ESP8266WiFi.h> | ||
| + | // #include <WiFi101.h> // for WiFi 101 shield or MKR1000 | ||
| + | // #include <WiFi.h> // for WiFi shield | ||
| + | |||
| + | #include <WiFi.h> | ||
| + | #include <WiFiUdp.h> | ||
| + | |||
| + | const char *ssid = "<SSID>"; | ||
| + | const char *password = "<PASSWORD>"; | ||
| + | |||
| + | WiFiUDP ntpUDP; | ||
| + | |||
| + | // You can specify the time server pool and the offset (in seconds, can be | ||
| + | // changed later with setTimeOffset() ). Additionally you can specify the | ||
| + | // update interval (in milliseconds, can be changed using setUpdateInterval() ). | ||
| + | |||
| + | NTPClient timeClient(ntpUDP, "europe.pool.ntp.org", 3600, 60000); | ||
| + | |||
| + | // Initialize OLED display | ||
| + | U8G2_SH1107_SEEED_128X128_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); | ||
| + | |||
| + | void setup(){ | ||
| + | Serial.begin(115200); | ||
| + | WiFi.begin(ssid, password); | ||
| + | while ( WiFi.status() != WL_CONNECTED ) { | ||
| + | delay ( 500 ); | ||
| + | Serial.print ( "." ); | ||
| + | } | ||
| + | timeClient.begin(); | ||
| + | u8g2.begin(); | ||
| + | } | ||
| + | void loop() { | ||
| + | timeClient.update(); | ||
| + | Serial.println(timeClient.getFormattedTime()); | ||
| + | |||
| + | u8g2.firstPage(); | ||
| + | do { | ||
| + | u8g2.setFont(u8g2_font_ncenB18_tr); | ||
| + | |||
| + | u8g2.setCursor(0, 64); | ||
| + | u8g2.print(timeClient.getFormattedTime()); | ||
| + | |||
| + | } while ( u8g2.nextPage() ); | ||
| + | |||
| + | |||
| + | // Send the buffer to the display | ||
| + | delay(1000); | ||
| + | } | ||
| + | </pre> | ||
Latest revision as of 17:56, 14 December 2025
Support[edit]
XIAO-ESP32S3
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Navigate to Tools > Board > Boards Manager..., type the keyword esp32 in the search box, select the latest version of esp32, and install it.
search for xiao in the development board on the left. select XIAO_ESP32S3
Liens externes[edit]
https://www.seeedstudio.com/XIAO-ESP32S3-p-5627.html shop
https://wiki.seeedstudio.com/xiao_esp32s3_getting_started wiki
https://mjrovai.github.io/XIAO_Big_Power_Small_Board-ebook/
https://mjrovai.github.io/XIAO_Big_Power_Small_Board-ebook/XIAO%E2%80%93Big-Power,-Small-Board.pdf
XIAO: Big Power, Small Board | Mastering Arduino and TinyML
Author : Lei Feng, Marcelo Rovai | Published : January 10, 2024
Hello World! [Code][edit]
Bibliothèque u8g2 https://wiki.myows.top/index.php?title=U8g2_for_Seeeduino_boards#Setup
U8x8lib
Grove Base for XIAO
XIAO-ESP32S3
OLED-Display-0-96-SSD1315 - Port i2c ✅
Hello World!
#include <Arduino.h>
#include <U8x8lib.h>
#include <Wire.h>
U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE); // OLEDs without Reset of the Display
void setup(void) {
u8x8.begin();
u8x8.setFlipMode(1); // set number from 1 to 3, the screen word will rotary 180
}
void loop(void) {
u8x8.setFont(u8x8_font_chroma48medium8_r);
u8x8.setCursor(0, 0);
u8x8.print("Hello World!");
}
Internet_Clock [Code][edit]
Grove Base for XIAO
XIAO-ESP32S3 📶
OLED Display 1.12 - Port I2c
Internet_Clock-XIAO-OLED_Display_1.12
sur l'écran série on a l'heure, mais que du texte sur l'OLED
#include <NTPClient.h>
#include <Arduino.h>
#include <U8g2lib.h>
#include <SPI.h>
#include <Wire.h>
// change next line to use with another board/shield
// #include <ESP8266WiFi.h>
// #include <WiFi101.h> // for WiFi 101 shield or MKR1000
// #include <WiFi.h> // for WiFi shield
#include <WiFi.h>
#include <WiFiUdp.h>
const char *ssid = "<SSID>";
const char *password = "<PASSWORD>";
WiFiUDP ntpUDP;
// You can specify the time server pool and the offset (in seconds, can be
// changed later with setTimeOffset() ). Additionally you can specify the
// update interval (in milliseconds, can be changed using setUpdateInterval() ).
NTPClient timeClient(ntpUDP, "europe.pool.ntp.org", 3600, 60000);
// Initialize OLED display
U8G2_SH1107_SEEED_128X128_1_SW_I2C u8g2(U8G2_R0, /* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE);
void setup(){
Serial.begin(115200);
WiFi.begin(ssid, password);
while ( WiFi.status() != WL_CONNECTED ) {
delay ( 500 );
Serial.print ( "." );
}
timeClient.begin();
u8g2.begin();
}
void loop() {
timeClient.update();
Serial.println(timeClient.getFormattedTime());
u8g2.firstPage();
do {
u8g2.setFont(u8g2_font_ncenB18_tr);
u8g2.setCursor(0, 64);
u8g2.print(timeClient.getFormattedTime());
} while ( u8g2.nextPage() );
// Send the buffer to the display
delay(1000);
}