Skip to content

Instantly share code, notes, and snippets.

@mitsuruog
Created October 7, 2012 16:43
Show Gist options
  • Save mitsuruog/3848886 to your computer and use it in GitHub Desktop.
Save mitsuruog/3848886 to your computer and use it in GitHub Desktop.
Arduino LED PWM sample
#define LED_PIN1 10
#define LED_PIN2 9
void setup(){
pinMode(LED_PIN1, OUTPUT);
pinMode(LED_PIN2, OUTPUT);
}
void loop(){
analogWrite(LED_PIN1, 255);
analogWrite(LED_PIN2, 10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment