博文

目前显示的是 八月, 2017的博文

4. Arduino Learning notebook -- Make the first circuit: Blink single LED (six leds)

图片
4. Arduino Learning notebook -- Make the first circuit: Blink single LED Juvtmall ( a company supply PCB Prototyping, PCBA service and sell kinds of components, modules and so on) ( Catduino has the same function of Arduino)
In the previous experiment, we learned how to make an LED to blink, and the following experiment would control six LEDs.




[code] 1. //set IO pin as controlling the LED 2.int Led1 = 1; 3.int Led2 = 2; 4.int Led3 = 3; 5.int Led4 = 4; 6.int Led5 = 5; 7.int Led6 = 6; 8. //Led display style 1 subprogram 9.void style_1(void)