Noiasca Tool Kit
Several helper functions and classes to make life with Arduino easier
Public Member Functions | List of all members
SmoothPin Class Reference

switch on a LED smoothly More...

#include <Noiasca_discrete.h>

Inheritance diagram for SmoothPin:
Smooth< DiscretePin >

Public Member Functions

 SmoothPin (byte pin)
 
- Public Member Functions inherited from Smooth< DiscretePin >
 Smooth (DiscretePin &obj)
 dim up / down a LED dimms smoothly More...
 
void offForced ()
 force switch off More...
 
uint16_t getCurrentBrightness ()
 get the current brightness More...
 
void getCurrentBrightness (uint16_t brightness)
 set the current brightness More...
 
void setMaxBrightness (uint16_t newValue)
 set the maximum brightness More...
 
void update (uint32_t currentMillis=millis())
 check if update is necessary More...
 

Detailed Description

switch on a LED smoothly

wrapper to switch on a discrete Arduino pin smoothly. Inherits style class and composites DiscretePin

Constructor & Destructor Documentation

◆ SmoothPin()

SmoothPin::SmoothPin ( byte  pin)
inline
Parameters
pina discrete pin (PWM). UNO/NANO PWM pins are 3, 5, 6, 9, 10, 11