Skip to content

Commit

Permalink
fix(arduino-nano): disconnect 6 pins from breadboard
Browse files Browse the repository at this point in the history
  • Loading branch information
AriellaE committed Dec 5, 2022
1 parent 5373794 commit fa40935
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
31 changes: 25 additions & 6 deletions src/arduino-nano-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,31 @@ export class ArduinoNanoElement extends LitElement {
{ name: 'RESET', x: 134.9, y: 62.4, signals: [] },
{ name: 'GND.1', x: 144.5, y: 62.4, signals: [{ type: 'power', signal: 'GND' }] },
{ name: 'VIN', x: 154.1, y: 62.4, signals: [{ type: 'power', signal: 'VCC' }] },
{ name: '12.2', x: 163.7, y: 43.2, signals: [spi('MISO')] },
{ name: '5V.2', x: 154.1, y: 43.2, signals: [{ type: 'power', signal: 'VCC', voltage: 5 }] },
{ name: '13.2', x: 163.7, y: 33.6, signals: [spi('SCK')] },
{ name: '11.2', x: 154.1, y: 33.6, signals: [spi('MOSI'), { type: 'pwm' }] },
{ name: 'RESET.3', x: 163.7, y: 24, signals: [] },
{ name: 'GND.3', x: 154.1, y: 24, signals: [{ type: 'power', signal: 'GND' }] },

{ name: '12.2', x: 163.7, y: 43.2, signals: [spi('MISO')], noBreadboard: true },
{
name: '5V.2',
x: 154.1,
y: 43.2,
signals: [{ type: 'power', signal: 'VCC', voltage: 5 }],
noBreadboard: true,
},
{ name: '13.2', x: 163.7, y: 33.6, signals: [spi('SCK')], noBreadboard: true },
{
name: '11.2',
x: 154.1,
y: 33.6,
signals: [spi('MOSI'), { type: 'pwm' }],
noBreadboard: true,
},
{ name: 'RESET.3', x: 163.7, y: 24, signals: [], noBreadboard: true },
{
name: 'GND.3',
x: 154.1,
y: 24,
signals: [{ type: 'power', signal: 'GND' }],
noBreadboard: true,
},
];

static get styles() {
Expand Down
5 changes: 5 additions & 0 deletions src/pin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ export interface ElementPin {
* Optional pin description
*/
description?: string;

/**
* Pin who cannot be connected to breadboard
*/
noBreadboard?: boolean;
}

/** Helper function for creating PinSignalInfo objects */
Expand Down

0 comments on commit fa40935

Please sign in to comment.