Runner's High
Public Attributes | Properties | List of all members
Accel.Stepper Class Reference

A stepper can be used either to fire events in regular timer intervals, or as an alternating binary state of 0 and 1. More...

Inheritance diagram for Accel.Stepper:
Accel.DataOutput< float >

Public Attributes

float cadence = 1f
 A stepper instance fires an event every cadence sceonds. More...
 
float RandomCadenceFactor = 1
 Set a value other than 0 to randomize the stepper cadence. Example: A stepper with cadence 1 and RandomCadenceFactor 2 fire events in time intervals between 0.5 and 2 seconds. More...
 
bool val
 The current bool value of the stepper. More...
 

Properties

float Val [get]
 The current float value of the stepper. More...
 
- Properties inherited from Accel.DataOutput< float >
Val [get]
 The current output calue.
 

Detailed Description

A stepper can be used either to fire events in regular timer intervals, or as an alternating binary state of 0 and 1.

Member Data Documentation

◆ cadence

float Accel.Stepper.cadence = 1f

A stepper instance fires an event every cadence sceonds.

◆ RandomCadenceFactor

float Accel.Stepper.RandomCadenceFactor = 1

Set a value other than 0 to randomize the stepper cadence. Example: A stepper with cadence 1 and RandomCadenceFactor 2 fire events in time intervals between 0.5 and 2 seconds.

◆ val

bool Accel.Stepper.val

The current bool value of the stepper.

Property Documentation

◆ Val

float Accel.Stepper.Val
get

The current float value of the stepper.


The documentation for this class was generated from the following file: