护花使者新增项.md 1.1 KB

护花使者新增项

说明文档

dev/docs中新增说明文档:

smart_flower_machine_expand

设备端

1、dev/team_x中新增设备端代码:

smart_flower_machine_expand

2、dev/team_x/common/inc/flower.h中新增代码:

int E53IA1_SetFanStatus(int state, int speedLevel);

int E53IA1_SetMainLed(int status, int dutyCycle);

应用端

1、FA/DistSchedule/entry/src/main/resources/base/layout中新增应用端界面代码:

ability_watering_expand.xml

2、FA/DistSchedule/entry/src/main/resources/base/media中新增应用端图标:

icon_gear_zero_selected.png

icon_gear_zero_unselected.png

3、FA/DistSchedule/entry/src/main/java/com/example/distschedule/slice中新增应用端java代码:

WateringAbilitySlice_expand.java

4、FA/DistSchedule/entry/src/main/java/com/example/distschedule/DeviceControlAbility.java中新增代码:

addActionRoute(ACTION_WATERING, WateringAbilitySlice_expend.class.getName()); // 护花使者拓展

profile

profile中新增护花使者profile定义说明。