Table of Contents

set PWM pin () output as ()

Description

set PWM pin () output as () is a stack block available in evive block. The block set PWM output on evive PWM pins. The user can select the output from a range of 0 to 255.  If the PWM output is 128, then half the time output will be High and for rest, the output will be Low.

Available pins

  • evive: 12 PWM pins available to the user: digital pins 2 to 13

You can select the pin using the drop-down menu.

evive Notes Icon
Note: This block is available in both Upload mode and Stage mode.

Example

  1. Controlling Pin 13 LED brightness using potentiometer 1 in stage mode.
    set pwm output example
  2. Controlling Pin 13 LED brightness using an analog sensor connected to analog pin A0 in upload mode.
    set pwm output example 2

Example

There are no examples documented for this article.