set PWM pin () output as ():

Introduction

Set PWM pin output is a Robot block and a stack block. This 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, output will be Low.

Available  pins in evive:

  •  12 PWM pins available in evive: 2 to 13
  • Buzzer pin (46)

You can select the pin using drop down menu.

This block can be used in Arduino Mode as well as in Scratch Mode.

set PWM pin () output as ():
set PWM pin () output as () scratch block
Category: Arduino

Example

  • Controlling Pin 13 LED brightness using Up and Down key on keyboard in Scratch Mode.

Controlling Pin 13 LED brightness using Up and Down key on keyboard in Scratch Mode

  • Controlling Pin 13 LED brightness using Potentiometer 2 in Arduino Mode

Controlling Pin 13 LED brightness using Potentiometer 2 in Arduino Mode