Add shield exposes
This commit is contained in:
parent
89bc37c9d2
commit
57c8c01cb3
2 changed files with 5 additions and 9 deletions
|
@ -1,8 +0,0 @@
|
|||
file_format: "1"
|
||||
id: nice_view
|
||||
name: nice!view
|
||||
type: interconnect
|
||||
url: https://nicekeyboards.com/nice-view
|
||||
manufacturer: Nice Keyboards
|
||||
description: |
|
||||
The nice!view is a low power, high refresh rate display using a 3-pin SPI protocol.
|
|
@ -41,7 +41,11 @@ function groupedShield(agg: GroupedMetadata, shield: Shield) {
|
|||
ic.shields.push(shield);
|
||||
agg.interconnects[id] = ic;
|
||||
});
|
||||
|
||||
shield.exposes.forEach((id) => {
|
||||
let ic = agg.interconnects[id] ?? { boards: [], shields: [] };
|
||||
ic.shields.push(shield);
|
||||
agg.interconnects[id] = ic;
|
||||
});
|
||||
return agg;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue