Rev 14 | Rev 16 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 14 | Rev 15 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | /// |
|
- | 2 | /// Dial drawing library : used to display anything from compass display to arcs of "meter" displays |
|
- | 3 | /// |
|
1 | #pragma once |
4 | #pragma once |
2 | #include <cstdint> |
5 | #include <cstdint> |
3 | 6 | ||
4 | class displayDial_t |
7 | class displayDial_t |
5 | { |
8 | { |
Line 27... | Line 30... | ||
27 | uint8_t y, |
30 | uint8_t y, |
28 | uint8_t siz, |
31 | uint8_t siz, |
29 | int16_t angle_low, |
32 | int16_t angle_low, |
30 | int16_t angle_high); |
33 | int16_t angle_high); |
31 | 34 | ||
32 | // put the dial needle on the display |
35 | /// @brief Put the dial needle on the display |
- | 36 | /// @param position values are from 0 .. math.SINE_STEPS |
|
33 | void draw_needle(int16_t position); |
37 | void draw_needle(int16_t position); |
34 | 38 | ||
- | 39 | ||
35 | // draw the scale |
40 | // draw the scale |
36 | /// \param low low end of range |
41 | /// \param low low end of range |
37 | /// \param high high end of range |
42 | /// \param high high end of range |
38 | /// \param width length of long marker |
43 | /// \param width length of long marker |
39 | /// \param num_step number of ticks |
44 | /// \param num_step number of ticks |