Home
last modified time | relevance | path

Searched refs:knob (Results 1 – 3 of 3) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/examples/c++/
Dgroverotary.cxx36 upm::GroveRotary* knob = new upm::GroveRotary(0); in main() local
39 cout << knob->name() << endl; in main()
42 float abs_value = knob->abs_value(); // Absolute raw value in main()
43 float abs_deg = knob->abs_deg(); // Absolute degrees in main()
44 float abs_rad = knob->abs_rad(); // Absolute radians in main()
45 float rel_value = knob->rel_value(); // Relative raw value in main()
46 float rel_deg = knob->rel_deg(); // Relative degrees in main()
47 float rel_rad = knob->rel_rad(); // Relative radians in main()
55 delete knob; in main()
/hardware/bsp/intel/peripheral/libupm/examples/python/
Dgroverotary.py27 knob = grove.GroveRotary(0) variable
33 abs = knob.abs_value()
34 absdeg = knob.abs_deg()
35 absrad = knob.abs_rad()
37 rel = knob.rel_value()
38 reldeg = knob.rel_deg()
39 relrad = knob.rel_rad()
/hardware/bsp/intel/peripheral/libupm/examples/java/
DGroveRotarySample.java38 upm_grove.GroveRotary knob = new upm_grove.GroveRotary(0); in main() local
41 float abs_value = knob.abs_value(); // Absolute raw value in main()
42 float abs_deg = knob.abs_deg(); // Absolute degrees in main()
43 float abs_rad = knob.abs_rad(); // Absolute radians in main()
44 float rel_value = knob.rel_value(); // Relative raw value in main()
45 float rel_deg = knob.rel_deg(); // Relative degrees in main()
46 float rel_rad = knob.rel_rad(); // Relative radians in main()