Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/Basic/AnalogMeter/AnalogMeter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ M5GFX display;
//M5AtomDisplay display; // default setting
//M5AtomDisplay display ( 320, 180 ); // width, height

// #include <M5UnitPoEP4HDMI.h>
// M5UnitPoEP4HDMI display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60
// #include <M5UnitPoEP4DisplayOut.h>
// M5UnitPoEP4DisplayOut display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60


static constexpr float deg_to_rad = 0.017453292519943295769236907684886;
Expand Down
4 changes: 2 additions & 2 deletions examples/Basic/BarGraph/BarGraph.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ M5GFX display;
// #include <M5AtomDisplay.h>
// M5AtomDisplay display;

//#include <M5UnitPoEP4HDMI.h>
//M5UnitPoEP4HDMI display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60
//#include <M5UnitPoEP4DisplayOut.h>
//M5UnitPoEP4DisplayOut display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60

static constexpr size_t BAR_COUNT = 64;
static int max_y[BAR_COUNT];
Expand Down
4 changes: 2 additions & 2 deletions examples/Basic/GameOfLife/GameOfLife.ino
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ M5GFX display;
//#include <M5AtomDisplay.h>
//M5AtomDisplay display;

//#include <M5UnitPoEP4HDMI.h>
//M5UnitPoEP4HDMI display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60
//#include <M5UnitPoEP4DisplayOut.h>
//M5UnitPoEP4DisplayOut display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60

M5Canvas canvas[2];

Expand Down
4 changes: 2 additions & 2 deletions examples/Basic/LongTextScroll/LongTextScroll.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ M5GFX display;
//#include <M5AtomDisplay.h>
//M5AtomDisplay display;

//#include <M5UnitPoEP4HDMI.h>
//M5UnitPoEP4HDMI display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60
//#include <M5UnitPoEP4DisplayOut.h>
//M5UnitPoEP4DisplayOut display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60

M5Canvas canvas(&display);

Expand Down
4 changes: 2 additions & 2 deletions examples/Basic/ScrollGraph/ScrollGraph.ino
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ M5GFX display;
//#include <M5AtomDisplay.h>
//M5AtomDisplay display;

//#include <M5UnitPoEP4HDMI.h>
//M5UnitPoEP4HDMI display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60
//#include <M5UnitPoEP4DisplayOut.h>
//M5UnitPoEP4DisplayOut display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60


#define LINE_COUNT 6
Expand Down
4 changes: 2 additions & 2 deletions examples/Basic/SpinTile/SpinTile.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ M5GFX display;
//M5AtomDisplay display; // default setting
//M5AtomDisplay display ( 320, 180 ); // width, height

//#include <M5UnitPoEP4HDMI.h>
//M5UnitPoEP4HDMI display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60
//#include <M5UnitPoEP4DisplayOut.h>
//M5UnitPoEP4DisplayOut display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60

static constexpr const int qsintab[256]={
0x8000,0x80c9,0x8192,0x825b,0x8324,0x83ee,0x84b7,0x8580,
Expand Down
4 changes: 2 additions & 2 deletions examples/Basic/TFT_graphicstest_PDQ/TFT_graphicstest_PDQ.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ M5GFX tft;
// M5AtomDisplay tft(480, 270);
// M5AtomDisplay tft(320, 180);

// #include <M5UnitPoEP4HDMI.h>
// M5UnitPoEP4HDMI tft; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60
// #include <M5UnitPoEP4DisplayOut.h>
// M5UnitPoEP4DisplayOut tft; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60
/*
M5AtomDisplay tft( 240 // width
, 360 // height
Expand Down
4 changes: 2 additions & 2 deletions examples/Basic/TextLogScroll/TextLogScroll.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ M5GFX display;
//M5AtomDisplay display; // default setting
//M5AtomDisplay display ( 320, 180 ); // width, height

//#include <M5UnitPoEP4HDMI.h>
//M5UnitPoEP4HDMI display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60
//#include <M5UnitPoEP4DisplayOut.h>
//M5UnitPoEP4DisplayOut display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60

static constexpr char text0[] = "hello world";
static constexpr char text1[] = "this";
Expand Down
4 changes: 2 additions & 2 deletions examples/Basic/drawImageData/drawImageData.ino
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ M5GFX display;
//#include <M5AtomDisplay.h>
//M5AtomDisplay display;

//#include <M5UnitPoEP4HDMI.h>
//M5UnitPoEP4HDMI display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60
//#include <M5UnitPoEP4DisplayOut.h>
//M5UnitPoEP4DisplayOut display; // 1280x720@60 or 1920x1080@30 only; default 1280x720@60

extern const uint8_t jpg[];

Expand Down
2 changes: 2 additions & 0 deletions extras/board_spec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ Write `detect_class` only when the class holds in every state detection can meet
cold boot, software reset, wake from sleep, and after an interrupted detection.
Measure each of these states on real hardware before writing a value.

- Do not classify pins whose state users can change through buttons, connectors,
or headers. Validation rejects connector and button roles.
- Use `up` / `down` / `floating` for pins defined by resistors alone.
- Use `fixed` for a driven pin only when the driver is always powered. For example,
an EPD BUSY output reads D normally and U while the EPD is in deep sleep, so it can
Expand Down
45 changes: 44 additions & 1 deletion extras/board_spec/boards/m5stack_tab5.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,36 @@
"roles": "generated"
}
},
"8": {
"roles": [
"bus:wifi_sdio.d3"
]
},
"9": {
"roles": [
"bus:wifi_sdio.d2"
]
},
"10": {
"roles": [
"bus:wifi_sdio.d1"
]
},
"11": {
"roles": [
"bus:wifi_sdio.d0"
]
},
"12": {
"roles": [
"bus:wifi_sdio.clk"
]
},
"13": {
"roles": [
"bus:wifi_sdio.cmd"
]
},
"16": {
"roles": [
"conn:mbus.2"
Expand Down Expand Up @@ -111,7 +141,8 @@
"22": {
"roles": [
"dev:backlight.pwm"
]
],
"detect_class": "down"
},
"23": {
"roles": [
Expand Down Expand Up @@ -342,6 +373,18 @@
],
"preferred_host": 0,
"fixed": false
},
"wifi_sdio": {
"kind": "sdmmc",
"signals": [
"clk",
"cmd",
"d0",
"d1",
"d2",
"d3"
],
"fixed": false
}
},
"devices": {
Expand Down
45 changes: 44 additions & 1 deletion extras/board_spec/boards/m5stack_tab5x.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,36 @@
"roles": "generated"
}
},
"8": {
"roles": [
"bus:wifi_sdio.d3"
]
},
"9": {
"roles": [
"bus:wifi_sdio.d2"
]
},
"10": {
"roles": [
"bus:wifi_sdio.d1"
]
},
"11": {
"roles": [
"bus:wifi_sdio.d0"
]
},
"12": {
"roles": [
"bus:wifi_sdio.clk"
]
},
"13": {
"roles": [
"bus:wifi_sdio.cmd"
]
},
"16": {
"roles": [
"conn:mbus.2"
Expand Down Expand Up @@ -110,7 +140,8 @@
"22": {
"roles": [
"dev:backlight.pwm"
]
],
"detect_class": "down"
},
"23": {
"roles": [
Expand Down Expand Up @@ -341,6 +372,18 @@
],
"preferred_host": 0,
"fixed": false
},
"wifi_sdio": {
"kind": "sdmmc",
"signals": [
"clk",
"cmd",
"d0",
"d1",
"d2",
"d3"
],
"fixed": false
}
},
"devices": {
Expand Down
11 changes: 11 additions & 0 deletions extras/board_spec/boards/m5stampp4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"schema_version": 1,
"id": "m5stampp4",
"name": "M5StampP4",
"official_name": "M5StampP4",
"legacy_board_id": 150,
"chip": "esp32p4",
"pins": {},
"buses": {},
"devices": {}
}
11 changes: 11 additions & 0 deletions extras/board_spec/boards/m5stampp4x.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"schema_version": 1,
"id": "m5stampp4x",
"name": "M5StampP4X",
"official_name": "M5StampP4X",
"legacy_board_id": 156,
"chip": "esp32p4",
"pins": {},
"buses": {},
"devices": {}
}
2 changes: 1 addition & 1 deletion extras/board_spec/boards/m5stamps3mini.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"id": "m5stamps3mini",
"name": "M5StampS3Mini",
"official_name": "M5Stack M5StampS3Mini",
"legacy_board_id": 150,
"legacy_board_id": 155,
"chip": "esp32s3",
"pins": {
"1": {
Expand Down
95 changes: 95 additions & 0 deletions extras/board_spec/boards/m5unitpoep4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"schema_version": 1,
"id": "m5unitpoep4",
"name": "M5UnitPoEP4",
"official_name": "M5Stack Unit PoE-P4",
"legacy_board_id": 148,
"chip": "esp32p4",
"pins": {
"0": {
"roles": [
"bus:internal_i2c.sda"
],
"verified": {
"roles": "generated"
}
},
"1": {
"roles": [
"bus:internal_i2c.scl"
],
"verified": {
"roles": "generated"
}
},
"31": {
"roles": [
"dev:ethernet.mdc"
],
"detect_class": "up"
},
"32": {
"roles": [],
"detect_class": "floating"
},
"45": {
"roles": [
"dev:btn_a.in"
]
},
"52": {
"roles": [
"dev:ethernet.mdio"
],
"detect_class": "up"
},
"53": {
"roles": [
"conn:port_a.2"
],
"verified": {
"roles": "generated"
}
},
"54": {
"roles": [
"conn:port_a.1"
],
"verified": {
"roles": "generated"
}
}
},
"buses": {
"internal_i2c": {
"kind": "i2c",
"signals": [
"sda",
"scl"
],
"fixed": false,
"verified": {
"signals": "generated"
}
}
},
"devices": {
"ethernet": {
"kind": "transceiver"
},
"btn_a": {
"kind": "button",
"part": "button",
"spec": {
"active_low": true,
"pull": "external_up"
}
}
},
"connectors": {
"port_a": {
"type": "hy2_4p",
"standard": "port_i2c"
}
}
}
Loading
Loading