Last active
September 25, 2018 02:57
-
-
Save derfaq/1149405802b0f1206f86db62bd43d769 to your computer and use it in GitHub Desktop.
analogWrite at half
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int led = 10; // the PWM pin the LED is attached to | |
void setup() { | |
pinMode(led, OUTPUT); | |
} | |
void loop() { | |
// set the brightness at half: | |
analogWrite(led, 127); | |
} | |
// I can edit my gist with my smart phone | |
// it isn't great? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment