Searched refs:GroveRotary (Results 1 – 6 of 6) sorted by relevance
172 GroveRotary::GroveRotary(unsigned int pin) in GroveRotary() function in GroveRotary182 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 …]
252 class GroveRotary: public Grove {259 GroveRotary(unsigned int pin);263 ~GroveRotary();
36 upm::GroveRotary* knob = new upm::GroveRotary(0); in main()
38 upm_grove.GroveRotary knob = new upm_grove.GroveRotary(0); in main()
27 knob = grove.GroveRotary(0)
29 var groveRotary = new upm_grove.GroveRotary(0);