O código do Sketch está aqui:
/*
Led RGB e Display LCD : HSB loop
Makes an RGB led to loop on all colors and displays
the RGB values into an LCD display. The color loop
is achieved varying the Hue value from 0 to 255 and
converting the HSB value into RGB values.
The circuit:
* LCD RS pin to digital pin 13
* LCD Enable pin to digital pin 12
* LCD D4 pin to digital pin 5
* LCD D5 pin to digital pin 4
* LCD D6 pin to digital pin 3
* LCD D7 pin to digital pin 2
* 10K resistor:
* ends to +5V and ground
* wiper to LCD VO pin (pin 3)
* RGB Led Red pin to PWM pin 9
* RGB Led Green pin to PWM pin 10
* RGB Led Blue pin to PWM pin 11
* RGB Led GND pin to GND
* 220 resistors:
* on each led's color pin
Based on the Arduino Liquid Crystal tutorial and
the HSBtoRGB function from Paul V. (Arduino Forum).
* http://www.arduino.cc/en/Tutorial/LiquidCrystal
* http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1235225449/13#13

Nenhum comentário:
Postar um comentário