diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-10-14 13:44:56 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-10-14 13:44:56 -0500 |
commit | 7997af3f4f6d8ca680e381cb1bee4ebe3b82e175 (patch) | |
tree | f88cd6c4fa54fdf8c9d76506b9cf03cfa0142763 /clients/tde/src/part/fpgaview/part.h | |
parent | e9bed7d3af54c11f1174b73daa8d8b838448b27f (diff) | |
download | ulab-7997af3f4f6d8ca680e381cb1bee4ebe3b82e175.tar.gz ulab-7997af3f4f6d8ca680e381cb1bee4ebe3b82e175.zip |
Fix 7-segment LED display and add sample driver for the same
Diffstat (limited to 'clients/tde/src/part/fpgaview/part.h')
-rw-r--r-- | clients/tde/src/part/fpgaview/part.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/clients/tde/src/part/fpgaview/part.h b/clients/tde/src/part/fpgaview/part.h index 26e70ec..b49ace2 100644 --- a/clients/tde/src/part/fpgaview/part.h +++ b/clients/tde/src/part/fpgaview/part.h @@ -105,7 +105,7 @@ class TQ_EXPORT FPGA7Segment : public TQFrame SegmentStyle segmentStyle() const; virtual void setSegmentStyle(SegmentStyle); - void setLitSegments(unsigned int); + void setLitSegments(unsigned char); TQSize sizeHint() const; @@ -120,6 +120,7 @@ class TQ_EXPORT FPGA7Segment : public TQFrame char* m_prevSegments; char* m_currentSegments; + unsigned int prevSegments; double val; uint smallPoint : 1; uint fill : 1; @@ -231,10 +232,10 @@ namespace RemoteLab unsigned int m_16bitInputValue; unsigned int m_16bitOutputValue; TQCString m_LCDOutputValue; - unsigned int m_7segDigit3OutputValue; - unsigned int m_7segDigit2OutputValue; - unsigned int m_7segDigit1OutputValue; - unsigned int m_7segDigit0OutputValue; + unsigned char m_7segDigit3OutputValue; + unsigned char m_7segDigit2OutputValue; + unsigned char m_7segDigit1OutputValue; + unsigned char m_7segDigit0OutputValue; UnsignedIntegerList m_batchInputValueList; UnsignedIntegerList m_batchOutputValueList; |