27 lines
536 B
C#
Raw Normal View History

2020-05-11 21:11:29 +08:00
namespace Sunny.UI.Demo
{
2021-08-11 23:13:24 +08:00
public partial class FLed : UIPage
2020-05-11 21:11:29 +08:00
{
2021-08-11 23:13:24 +08:00
public FLed()
2020-05-11 21:11:29 +08:00
{
InitializeComponent();
}
private int value;
public override void Init()
{
uiLedStopwatch1.Active = true;
value = 0;
timer1.ReStart();
}
private void timer1_Tick(object sender, System.EventArgs e)
{
value++;
uiBattery1.Power = value;
uiLedDisplay1.Text = value + " Ω";
2020-05-11 21:11:29 +08:00
}
}
}