Thanks for answer!
I really learn c++ again!
I've buy an PCA9685 16 Kanal 12-bit PWM Servo Driver LED Controller Servomotor Treiber I2C
I hope is the right one to control my led light bars
what can i bote on the original controller?
I can set led white to 100 % and to 1 % to look what came out
ore what i must do?
-------------------------------- Last edited Tue Dec 11, 2018 10:07 pm --------------------------------
I've expanded your code to:
const byte a_ledPinViolett = 0x40; // Pino que liga os leds violett aquarius
const byte a_ledPinUV = 0x41; // Pino que liga os leds uv aquarius
const byte a_ledPinBlue = 0x42; // Pino que liga os leds azuis aquarius
const byte a_ledPinWhite = 0x43; // Pino que liga os leds brancos aquarius
const byte a_ledPinRoyBlue = 0x44; // Pino que liga os leds royal blue aquarius
const byte a_ledPinRed = 0x45; // Pino que liga os leds vermelho aquarius
const byte o_ledPinBlue = 0x46; // Pino que liga os leds azuis ocean
const byte o_ledPinWhite = 0x47; // Pino que liga os leds brancos ocean
const byte r_ledPinBlue = 0x48; // Pino que liga os leds azuis reef
const byte r_ledPinWhite = 0x49; // Pino que liga os leds brancos reef
const byte fanPin = 13; // Pino que controla a velocidade das ventoinhas do dissipador
control by the PCA9685
all other in your code i have changed to:
egt by the way looks like so
and menu position colors egt so on
a_bled_out = (255 - a_bled_out);
a_wled_out = (255 - a_wled_out);
a_rbled_out = (255 - a_rbled_out);
a_rled_out = (255 - a_rled_out);
a_uvled_out = (255 - a_uvled_out);
a_vled_out = (255 - a_vled_out);
a_moonled_out = (255 - a_moonled_out);
o_bled_out = (255 - o_bled_out);
o_wled_out = (255 - o_wled_out);
r_bled_out = (255 - r_bled_out);
r_wled_out = (255 - r_wled_out);
but step by step first learn c ++ then I go completely but getting information is certainly always a good way
206 gallon tank, 42 gallon technic sump, system triton core 7, 8 dosing Pumps, AM Aquarius, AM Reef LED, AM Ocean LED at TC420, AM Temp controller, Skimmer Bubble Magus Curve M7, 3 Tunze flow pumps at Tunze Multi Controller 7096, AM refill system pro