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

Add: make digitalRead() for RGB_BUILTIN work #9419

Merged
merged 2 commits into from
Mar 26, 2024

Commits on Mar 25, 2024

  1. make digitalRead() for RGB_BUILTIN work

    Standard Arduino-Way of blinking a LED can be the shortest with:
    
    void loop() {
      static uint32_t ledticker = 0;
      if (millis() - ledticker > 1000) {
        ledticker = millis();
        digitalWrite(RGB_BUILTIN, !digitalRead(RGB_BUILTIN));
      }
    }
    
    Worked with the old LED_BUILTIN on Pin 2, now even works with Pin 48/neopixel.
    holgerlembke committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    bbfd8fc View commit details
    Browse the repository at this point in the history
  2. Add: make digitalRead() for RGB_BUILTIN work

    Standard Arduino-Way of blinking a LED can be the shortest with:
    
    void loop() {
      static uint32_t ledticker = 0;
      if (millis() - ledticker > 1000) {
        ledticker = millis();
        digitalWrite(RGB_BUILTIN, !digitalRead(RGB_BUILTIN));
      }
    }
    
    Worked with the old LED_BUILTIN on Pin 2, now even works with Pin 48/neopixel.
    
    (Retry. Didn't sync my local sources. Sorry.)
    holgerlembke committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    a9d460c View commit details
    Browse the repository at this point in the history