Stabilus 322699 wDoublePID
Dependencies: mbed QEI PID DmTftLibraryEx
Diff: Display/DisplayDriver.cpp
- Revision:
- 32:1be3d79ff4db
- Parent:
- 30:e45282a70a4d
- Child:
- 33:f77aa3ecf87d
--- a/Display/DisplayDriver.cpp Fri Mar 11 10:25:46 2022 +0000 +++ b/Display/DisplayDriver.cpp Fri Apr 08 05:27:20 2022 +0000 @@ -542,12 +542,8 @@ extern uint16_t aui16_PlotClears_Lo[240]; extern uint16_t aui16_PlotClears_Hi[240]; -void LCM_PlotVector (void) { +void LCM_PlotVector (uint16_t ui16_Background, uint16_t ui16_Foreground) { uint16_t ui16_Index000; -//uint16_t ui16_ActualSample; -//uint16_t ui16_PreviousSample; -//uint16_t ui16_Length; -//int16_t i16_Length; // LA: Scope Bar Plot, Theory of Operation // =================================== @@ -563,13 +559,13 @@ // LA: Clear Previous Plot by means of the Hi/Lo Array(s) // - Tft.drawVerticalLineEx (ui16_Index000, 300 - aui16_PlotClears_Hi[ui16_Index000], (int16_t) aui16_PlotClears_Hi[ui16_Index000]- aui16_PlotClears_Lo[ui16_Index000], Scale2RGBColor(31, 31, 31)); + Tft.drawVerticalLineEx (ui16_Index000, 300 - aui16_PlotClears_Hi[ui16_Index000], (int16_t) aui16_PlotClears_Hi[ui16_Index000]- aui16_PlotClears_Lo[ui16_Index000], ui16_Background); // LA: Then PLOT the New // aui16_PlotClears_Hi[ui16_Index000] = (uint16_t) (af_PlotSamples[ui16_Index000]* 100); aui16_PlotClears_Lo[ui16_Index000] = (uint16_t) (af_PlotSamples[ui16_Index000- 1]* 100); // - Tft.drawVerticalLineEx (ui16_Index000, 300 - aui16_PlotClears_Hi[ui16_Index000], (int16_t) aui16_PlotClears_Hi[ui16_Index000]- aui16_PlotClears_Lo[ui16_Index000], Scale2RGBColor(0, 0, 0)); + Tft.drawVerticalLineEx (ui16_Index000, 300 - aui16_PlotClears_Hi[ui16_Index000], (int16_t) aui16_PlotClears_Hi[ui16_Index000]- aui16_PlotClears_Lo[ui16_Index000], ui16_Foreground); } }