PinMode(greenPin, OUTPUT) // sets the greenPin to be an output PinMode(redPin, OUTPUT) // sets the redPin to be an output Int bluePin = 9 // B petal on RGB LED module connected to digital pin 10 Int greenPin = 10 // G petal on RGB LED module connected to digital pin 9 _32_control_a_RGB_LED_with_IR_remoter_controller.inoĪrduino-IRremote-master.zip // R petal on RGB LED module connected to digital pin 11 When you press the key marked with 0, the RGB LED will be off. If you press a certain key except 0 on the remote controller, you will find the color of an RGB LED changed. This experiment is to connect an RGB LED with a remote controller, and by programming the Arduino board, realize controlling the LED by the remote controller. In this lesson, we will use the remote IR receiver and the RGB to do an experiment - control the RGB LED by the infrared remote controller.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |