Skip to content

Instantly share code, notes, and snippets.

@mpentler
Created February 10, 2021 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpentler/38c2fccacf8216fe2b6b7da1e45b0d06 to your computer and use it in GitHub Desktop.
Save mpentler/38c2fccacf8216fe2b6b7da1e45b0d06 to your computer and use it in GitHub Desktop.
int ledPWM1 = 0;
int ledPWM2 = 1;
void setup() {
pinMode(ledPWM1, OUTPUT);
pinMode(ledPWM2, OUTPUT);
}
void loop() {
analogWrite(ledPWM1, random(50, 120));
analogWrite(ledPWM2, random(50, 120));
delay(random(100));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment