Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define LED_PIN 3
- float ledValue;
- void setup() {
- ledValue = 0;
- pinMode(LED_PIN, OUTPUT);
- }
- void loop() {
- ledValue = 108.3 * (exp(sin(millis() / 2000.0*PI) - 0.36787944));
- analogWrite(LED_PIN, int(ledValue));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement