mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
Rotary: Added C source
Added C source for rotary angle sensor * Renamed all files from groverrotary to rotary * Replaced all instances of groverrotary with rotary * Added C source for rotary angle sensor * Updated all CMake files Signed-off-by: Sisinty Sasmita Patra <sisinty.s.patra@intel.com>
This commit is contained in:

committed by
Noel Eck

parent
b266f87450
commit
bded0a07d9
@ -92,7 +92,7 @@ add_example (relay)
|
||||
add_example (light)
|
||||
add_example (temperature)
|
||||
add_example (grovebutton)
|
||||
add_example (groverotary)
|
||||
add_example (rotary)
|
||||
add_example (slide)
|
||||
add_example (buzzer-sound)
|
||||
add_example (nrf24l01-transmitter)
|
||||
|
@ -33,7 +33,7 @@ int main ()
|
||||
{
|
||||
//! [Interesting]
|
||||
// Instantiate a rotary sensor on analog pin A0
|
||||
upm::GroveRotary* knob = new upm::GroveRotary(0);
|
||||
upm::Rotary* knob = new upm::Rotary(0);
|
||||
|
||||
// Print sensor name to confirm it initialized properly
|
||||
cout << knob->name() << endl;
|
Reference in New Issue
Block a user