Add shield exposes

This commit is contained in:
Nick Winans 2022-09-25 20:35:24 -05:00
parent 89bc37c9d2
commit 57c8c01cb3
2 changed files with 5 additions and 9 deletions

View file

@ -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.

View file

@ -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;
}