int led1 = 10; // the pin that the LED is attached to int led2 = 11; // the pin that the LED is attached to int brightness = 0; // how bright the LED is int fadeAmount = 10; // how many points to fade the LED by
// 此 setup 程序只有在微控制器按 reset 時執行一次 void setup() { // declare pin 10 to be an output: pinMode(led1, OUTPUT); pinMode(led2, OUTPUT); }
// the loop routine runs over and over again forever: void loop() { analogWrite(led1, brightness); analogWrite(led2, 255-brightness);
This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.
You are receiving this email because you subscribed to this feed at blogtrottr.com.