You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior: Error message should not appear when LED is connected to digital pins which are programmed correctly (.ino code is written correctly) i.e POSITIVE pin is given HIGH and NEGATIVE pin is given LOW
When "Start Simulation" is pressed, LED's simulation function is called before Arduino's simulation function.
(LED is of type output)
(Code at eSim-Cloud/ArduinoFrontend/src/app/Libs/Workspace.ts) (Line 1045)
// Sequence to be followed while calling initSimulation
const seqn = ['output', 'general', 'controllers', 'drivers', 'power', 'input', 'misc'];
// For each component call initsimulation function
for (const key of seqn) {
for (const items of Utils.componentBox[key]) {
for (const item of items) {
if (window.scope[item]) {
for (const ele of window.scope[item]) {
if (ele.initSimulation) {
ele.initSimulation();
}
}
}
}
}
}
When LED tries to read the values of connected Arduino pins, they have not been initialized yet.
This causes the checks to see if LED is connected properly to not be satisfied.
Additional information:
The error message only stays for a short while and will go away after the values of the Arduino pins have been initialized.
The text was updated successfully, but these errors were encountered:
Description: A pop up error message "LED is not Connected properly" is showing on right hand side of screen even though LED is connected properly.
Steps to Reproduce:
Expected behavior: Error message should not appear when LED is connected to digital pins which are programmed correctly (.ino code is written correctly) i.e POSITIVE pin is given HIGH and NEGATIVE pin is given LOW
Error example:
Tested on:
Reason for error:
(LED is of type output)
(Code at eSim-Cloud/ArduinoFrontend/src/app/Libs/Workspace.ts) (Line 1045)
Additional information:
The error message only stays for a short while and will go away after the values of the Arduino pins have been initialized.
The text was updated successfully, but these errors were encountered: