phyphox BLE
Plot your Arduino's data in the phyphox app and control the board from the phone
Loading...
Searching...
No Matches
phyphox::InputCommon Struct Reference

Common part of every element that writes into an input channel (edit, slider, dropdown, toggle, button). More...

#include <ElementData.h>

Public Attributes

uint8_t channel = 0
 1…PHYPHOX_BLE_MAX_INPUT_CHANNEL; 0 = not set (ERR at add time)
 
float defaultValue = 0
 
bool hasDefault = false
 
ChangeCallback onChange = nullptr
 
uint8_t submitWithChannel = 0
 a button's channel: send only when it is pressed (triggerId)
 

Detailed Description

Common part of every element that writes into an input channel (edit, slider, dropdown, toggle, button).

Shared so the store can treat them alike.

Member Data Documentation

◆ channel

uint8_t phyphox::InputCommon::channel = 0

1…PHYPHOX_BLE_MAX_INPUT_CHANNEL; 0 = not set (ERR at add time)

◆ defaultValue

float phyphox::InputCommon::defaultValue = 0

◆ hasDefault

bool phyphox::InputCommon::hasDefault = false

◆ onChange

ChangeCallback phyphox::InputCommon::onChange = nullptr

◆ submitWithChannel

uint8_t phyphox::InputCommon::submitWithChannel = 0

a button's channel: send only when it is pressed (triggerId)


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