RGB LED Cathode pin issue
rinon13 opened this issue · comments
Phone Khant Kyaw (Tyron) commented
Description: The Cathode pin of RGB LED should only be connected to the GND pin or a digitally programmed 0 pin for RGB LED to work. In scenarios mentioned below, it is working when connected to any pin.
Scenarios:
Cathode pin connected to an unconnected resistor
Cathode pin connected to a 5V pin
Steps to Reproduce
- Connect as shown above
- Copy .ino code
void setup(){
pinMode(11, OUTPUT);
pinMode(9, OUTPUT);
pinMode(7, OUTPUT);
}
void loop(){
for(int i=1;i<=7;++i){
digitalWrite(11, i&1);
digitalWrite(9, (i>>1)&1);
digitalWrite(7, (i>>2)&1);
delay(1000);
}
}
- Press "Start Simulation"
- RGB LED will work
Expected Behavior:Should only work when Cathode pin is connected to GND or digitally programmed LOW (0) pin.
RGB LED.webm
Video of above scenarios
Version and OS:
- OS: Ubuntu 22.04.1 LTS
- Browser: Firefox 110
Tested on
- develop
- simulation.iitbx.in
Firuza Aibara commented
fixed in #481