[General Functions]
描述
Turns off the text display in the bank, which is an integer value between 0 and 15, and turns off all Alarms when no quotes are passed or when the value is -1.
語法
void deleteAlarmBanner(int bank = -1);
參數
[in] bank
The number of groups of alarm banners, from 0 to 15. All alarms will be turned off if no quotes are passed or value is -1.
Return
無
範例
#include "myhmi.h" void setup() { Hmi.begin(); // put your setup code here, to run once: } void loop() { if (Hmi.getToggleButtonState(p2tb1)) { Hmi.showAlarmBanner("This is a test."); } else { Hmi.deleteAlarmBanner(); } // ... }
Please see the 86HMI 編輯器使用手冊 for more instructions on 86HMI widgets and API usage.