Hi guys, Could anyone help me?

Hi guys, Could anyone help me? I was trying to use quadwave8 to create a breathing effect with a PWM output on a standard led. but i’m not sure how to make it do what i want. Anyone have a suggestion?

Could you ellaborate on what you want to achieve and maybe share with us what you already tried (code, etc.).

Given that your PWM output can be controlled with a value between 0 and 255 you can for sure use many of the math functions in FastLED in a useful way for that.

The output of quadwave however is just full on or full off, so the effect will just “blink”

or are you trying to create the actual PWM signal with quadwave?

Here’s an example that fades up and then jumps back to zero, then fades up again, etc. In this example you could reverse the count when it hits 255 instead of resetting it to zero to create more of a breathing up down effect. And instead of using FastLED.show(), send the value to your PWM pin with the regular LED.
https://github.com/marmilicious/FastLED_examples/blob/master/test_quadwave8_fade_up.ino

Also, here’s a breathing effect, but it doesn’t use quadwave8. For a regular LED you could just remove all the hue and saturation part of the code.
https://github.com/marmilicious/FastLED_examples/blob/master/test_breath_effect_v2.ino

I was looking to simulate a more natural breathing pattern. using the quadratic wave function to go up and down from 0 to 255 and back to 0 repeatedly at a certain wave length. the quadratic wave function as i understand it is supposed to produce a wave with more of a hang at the top and bottom? similar to the cubic wave function? I have no code yet because I can’t find documentation on where to use quadwave8 in the examples. I tried putting quadwave8 in by itself and obviously it doesn’t do anything. I’m not sure I’m understanding the purpose of these functions correctly i though they returned a value each cycle.

This post might give you a bit more info if you didn’t already find it.
https://plus.google.com/112916219338292742137/posts/WJWGyYLZ8zR