AP_Notify: example sketch uses ToshibaLED_I2C driver
This commit is contained in:
parent
d8ae56f455
commit
98db17e9a1
@ -1,15 +1,10 @@
|
|||||||
#include <AP_HAL/AP_HAL.h>
|
#include <AP_HAL/AP_HAL.h>
|
||||||
#include <AP_Notify/AP_Notify.h>
|
#include <AP_Notify/AP_Notify.h>
|
||||||
|
#include <AP_Notify/ToshibaLED_I2C.h>
|
||||||
|
|
||||||
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
||||||
|
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
|
||||||
#include <AP_Notify/ToshibaLED_PX4.h>
|
|
||||||
static ToshibaLED_PX4 toshiba_led;
|
|
||||||
#else
|
|
||||||
#include <AP_Notify/ToshibaLED_I2C.h>
|
|
||||||
static ToshibaLED_I2C toshiba_led;
|
static ToshibaLED_I2C toshiba_led;
|
||||||
#endif
|
|
||||||
|
|
||||||
void setup(void)
|
void setup(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user