Home
last modified time | relevance | path

Searched refs:GroveRotary (Results 1 – 6 of 6) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/src/grove/
Dgrove.cxx172 GroveRotary::GroveRotary(unsigned int pin) in GroveRotary() function in GroveRotary
182 GroveRotary::~GroveRotary() in ~GroveRotary()
187 float GroveRotary::abs_value() in abs_value()
192 float GroveRotary::abs_deg() in abs_deg()
194 return GroveRotary::abs_value() * (float) m_max_angle / 1023.0; in abs_deg()
197 float GroveRotary::abs_rad() in abs_rad()
199 return GroveRotary::abs_deg() * M_PI / 180.0; in abs_rad()
202 float GroveRotary::rel_value() in rel_value()
204 return GroveRotary::abs_value() - 512.0; in rel_value()
207 float GroveRotary::rel_deg() in rel_deg()
[all …]
Dgrove.h252 class GroveRotary: public Grove {
259 GroveRotary(unsigned int pin);
263 ~GroveRotary();
/hardware/bsp/intel/peripheral/libupm/examples/c++/
Dgroverotary.cxx36 upm::GroveRotary* knob = new upm::GroveRotary(0); in main()
/hardware/bsp/intel/peripheral/libupm/examples/java/
DGroveRotarySample.java38 upm_grove.GroveRotary knob = new upm_grove.GroveRotary(0); in main()
/hardware/bsp/intel/peripheral/libupm/examples/python/
Dgroverotary.py27 knob = grove.GroveRotary(0)
/hardware/bsp/intel/peripheral/libupm/examples/javascript/
Dgroverotary.js29 var groveRotary = new upm_grove.GroveRotary(0);