(
)
g (
)
g
which will be used later in the setup block of the program to set digital pin 2 as the
output pin to control the blue LED.
const int hot = 20; // Set a threshold for hot
temperature in Celsius
const int cold = 18; // Set a threshold for cold temperature in Celsius
const int BluePin = 2; // Set digital I/O 2 to control the blue LED in the RGB LED
const int GreenPin = 3; // Set digital I/O 3 to control the green LED in the RGB LED
const int RedPin = 4; // Set digital I/O 4 to control the red LED in the RGB LED
Dostları ilə paylaş: