#include #include "ohos_init.h" #include "iot_gpio.h" #include "iot_gpio_ex.h" // 请使用五角星扩展板 #define LED 9 void led_entry(){ printf("led_entry called \n"); IoTGpioInit(LED); IoTGpioSetDir(LED,IOT_GPIO_DIR_OUT); IoTGpioSetFunc(LED,IOT_GPIO_FUNC_GPIO_7_GPIO); IoTGpioSetOutputVal(LED,1); } APP_FEATURE_INIT(led_entry);