mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 01:11:10 +03:00
LED: Added C Src and Example
Changed from Grove LED to LED. Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
@ -87,7 +87,7 @@ link_directories (${MRAA_LIBDIR})
|
||||
# mq? will use module gas
|
||||
# grove* will use module grove
|
||||
add_example (hmc5883l)
|
||||
add_example (groveled)
|
||||
add_example (led)
|
||||
add_example (relay)
|
||||
add_example (light)
|
||||
add_example (temperature)
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
#include <unistd.h>
|
||||
#include <iostream>
|
||||
#include "grove.hpp"
|
||||
#include "led.hpp"
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
@ -33,7 +33,7 @@ main(int argc, char **argv)
|
||||
//! [Interesting]
|
||||
|
||||
// Create the Grove LED object using GPIO pin 2
|
||||
upm::GroveLed* led = new upm::GroveLed(2);
|
||||
upm::Led* led = new upm::Led(2);
|
||||
|
||||
// Print the name
|
||||
std::cout << led->name() << std::endl;
|
Reference in New Issue
Block a user