Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
checkpoint
  • Loading branch information
rickkas7 committed Apr 28, 2025
commit 8bc7fc728671f447754de0d044db02fb33757ba4
130 changes: 130 additions & 0 deletions config/diagrams/m-hat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
{
"id": "m-hat",
"labels": [
{
"id": "usb",
"label": "1",
"title": "USB-C",
"x": 276,
"y": 1011
},
{
"id": "pd-led",
"label": "2",
"title": "USB-C PD LED",
"x": 396,
"y": 1011
},
{
"id": "dc-in",
"label": "3",
"title": "DC IN",
"x": 506,
"y": 1011
},
{
"id": "chg-led",
"label": "4",
"title": "Charge LED",
"x": 601,
"y": 1011
},
{
"id": "bat-conn",
"label": "5",
"title": "LiPo Battery",
"x": 712,
"y": 1011
},
{
"id": "ioex-conn",
"label": "6",
"title": "I/O Expansion",
"x": 935,
"y": 1011
},
{
"id": "rtc-conn",
"label": "7",
"title": "RTC Battery",
"x": 1177,
"y": 1011
},
{
"id": "grove-conn",
"label": "8",
"title": "Grove connector",
"x": 1382,
"y": 861
},
{
"id": "qwiic-conn",
"label": "9",
"title": "QWIIC connector",
"x": 932,
"y": 845
},
{
"id": "sma1",
"label": "10",
"title": "SMA connector",
"x": 1538,
"y": 671
},
{
"id": "sma2",
"label": "11",
"title": "SMA connector",
"x": 1538,
"y": 453
},
{
"id": "sma3",
"label": "12",
"title": "SMA connector",
"x": 1538,
"y": 228
},
{
"id": "reset-button",
"label": "13",
"title": "Reset button",
"x": 1173,
"y": 89
},
{
"id": "hat",
"label": "14",
"title": "Raspberry Pi HAT 40-pin connector",
"x": 604,
"y": 172
},
{
"id": "m2-som",
"label": "15",
"title": "Particle M.2 SoM",
"x": 624,
"y": 500
},
{
"id": "mode-button",
"label": "16",
"title": "Particle MODE button",
"x": 60,
"y": 709
},
{
"id": "rgb-led",
"label": "17",
"title": "Particle RGB LED",
"x": 60,
"y": 788
}
],
"labelSets": [],
"config": {
"height": 1045,
"width": 1600,
"labelDiameter": 60
}
}
14 changes: 14 additions & 0 deletions scripts/carriers-update/generator-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5275,6 +5275,20 @@ const schemaDocs = require('./schema-docs');
});
}
},
// M-HAT
{
// SKU list MHAT
guid:'47e37393-b9c0-4b04-9da6-e54cb2227cd1',
generatorFn:function(updater) {
return updater.generateSkuList({
columns: ['name', 'desc', 'region', 'lifecycle'],
filterFn:function(skuObj) {
return !skuObj.name.startsWith('MHAT');
}
});
}
},

// Tethering
{
guid:'7dc335b7-4ddc-464d-ae96-6231944ccc76',
Expand Down
19 changes: 18 additions & 1 deletion scripts/update-shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,26 @@ async function run(files, metalsmith) {
}
}
if (f.newContent && f.content != f.newContent) {
const oldFileContents = fs.readFileSync(f.fsPath, 'utf8');

let separatorCount = 0;
let frontMatter = '';
for(const line of oldFileContents.split(/\n/)) {
frontMatter += line + '\n';

if (line == '---') {
separatorCount++;

if (separatorCount == 2) {
break;
}
}
}

console.log('update file', f.relativePath);
files[f.relativePath].content = Buffer.from(f.newContent, 'utf8');
fs.writeFileSync(f.fsPath, f.newContent);

fs.writeFileSync(f.fsPath, frontMatter + f.newContent);
}
}
// console.log('blurbs', updater.blurbs);
Expand Down
6 changes: 4 additions & 2 deletions src/assets/files/carriers.json
Original file line number Diff line number Diff line change
Expand Up @@ -29502,7 +29502,8 @@
"retail": false,
"usb": "c",
"batteryConn": "jst-ph-3",
"batteryRequired": false
"batteryRequired": false,
"skuRegion": "noram"
},
{
"name": "MHAT524e",
Expand All @@ -29513,7 +29514,8 @@
"retail": false,
"usb": "c",
"batteryConn": "jst-ph-3",
"batteryRequired": false
"batteryRequired": false,
"skuRegion": "emeaa"
},
{
"name": "MON404E01C01KIT",
Expand Down
Binary file added src/assets/images/m-hat/m-hat-board.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/m-hat/m-hat-labeled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/m-hat/m-hat-sch-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/m-hat/m-hat-sch-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/m-hat/m-hat-sch-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/m-hat/m-hat-sch-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/m-hat/m-hat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading