SX1278 OOK waveform view with C# chart control - 4
2.2.2020
SX1278 OOK waveform view with C# chart control - 4
Oscilloscope "moving effect" lookalike
private void timer1_Tick(object sender, EventArgs e)
{
if (_run)
{
for (int i = _index; i < _xValues.Count; i++)
{
chart1.Series[0].Points.AddY(_xValues[i]);
if (chart1.Series[0].Points.Count > 100)
{
chart1.Series[0].Points.RemoveAt(0);
}
}
_index = _xValues.Count + 1;
}
}
Comments
Post a Comment