Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RGB LED Cathode pin issue #480

Closed
rinon13 opened this issue Feb 26, 2023 · 1 comment
Closed

RGB LED Cathode pin issue #480

rinon13 opened this issue Feb 26, 2023 · 1 comment

Comments

@rinon13
Copy link
Contributor

rinon13 commented Feb 26, 2023

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.

image
Cathode pin

Scenarios:

RGB_LED_Unconnected_Resistor
Cathode pin connected to an unconnected resistor

RGB_LED_5V
Cathode pin connected to a 5V pin

Steps to Reproduce

  1. Connect as shown above
  2. 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);
    }
}
  1. Press "Start Simulation"
  2. 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 added a commit that referenced this issue Mar 4, 2023
@firuza
Copy link
Collaborator

firuza commented Mar 4, 2023

fixed in #481

@firuza firuza closed this as completed Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants