Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ceoloide committed Oct 16, 2023
2 parents 8c14ea7 + cdefff7 commit 071b7b4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions ergogen/footprints/combo_display.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,33 @@ module.exports = {
return point_str;
}

let dst_nets = [
p.P1.str, // GND
p.P2.str, // VCC
p.P3.str, // SCL / SCK
p.P4.str, // SDA / MOSI
p.P5.str, // CS
];
local_nets = [
p.local_net("1").str,
p.local_net("2").str,
p.local_net("3").str,
p.local_net("4").str,
p.local_net("5").str,
];

let socket_nets = dst_nets;
if(p.reversible) {
socket_nets = local_nets;
} else if(p.side == 'B') {
socket_nets = dst_nets.slice().reverse();
}

let jumpers_front_top = dst_nets;
let jumpers_front_bottom = local_nets;
let jumpers_back_top = dst_nets;
let jumpers_back_bottom = local_nets.slice().reverse();

const standard_opening = `
(module "combo_display" (layer ${p.side}.Cu) (tedit 5B24D78E)
${p.at /* parametric position */}
Expand Down

0 comments on commit 071b7b4

Please sign in to comment.