Skip to content

Commit

Permalink
Merge pull request #493 from rinon13/Potentiometer_Issue_Merge
Browse files Browse the repository at this point in the history
Potentiometer issue merge
  • Loading branch information
firuza authored Mar 14, 2023
2 parents bef2bfc + e9eb678 commit 9e24606
Show file tree
Hide file tree
Showing 3 changed files with 664 additions and 27 deletions.
14 changes: 14 additions & 0 deletions ArduinoFrontend/src/app/Libs/General.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,20 @@ export class Resistor extends CircuitElement {
*/
closeSimulation(): void {
}

/**
* Get resistance value of resistor
*/
getResistance() {
return this.value;
}
/**
* Get ID of the resistor
* TODO: Add this function inside CircuitElements.ts instead
*/
getID() {
return this.id;
}
}

/**
Expand Down
Loading

0 comments on commit 9e24606

Please sign in to comment.