Difference between revisions of "XIAO-ESP32S3"
(→Support) |
(→Support) |
||
| Line 26: | Line 26: | ||
[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> | ||
| + | |||
| + | === code === | ||
| + | |||
| + | <b>Hello World!</b> | ||
| + | |||
| + | <pre> | ||
| + | #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!"); | ||
| + | } | ||
| + | </pre> | ||
Revision as of 22:31, 25 May 2025
Support
XIAO-ESP32S3
Liens externes
https://www.seeedstudio.com/XIAO-ESP32S3-p-5627.html shop
https://wiki.seeedstudio.com/xiao_esp32s3_getting_started wiki
code
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!");
}