-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding display driver types #69
base: master
Are you sure you want to change the base?
Conversation
mteichtahl
commented
Nov 17, 2017
- Basic - no -ve support, no leading zero - Advanced - 0 left padded, leading zero support, -ve support
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost ready to go
type = "microdriver", | ||
name="OH_FLT_DISPLAY", | ||
driver = "microdriver", # these are the drivers from flightsim.eu | ||
type = "advanced" # basic (like elec panel) , advanced (like ALT ALT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we give this flag a more specific value like "counted" vs "value"?
if (value > 0) { | ||
_matrixLED[displayNumber].group[groupIndex].value = convertedValue; | ||
_pokey->MatrixLED[displayNumber].data[position] = convertedValue; | ||
if (numberOfChars <= groupLength) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this condition code is starting to get too long - refactor cases into methods
@@ -29,6 +29,8 @@ | |||
#define MAX_MATRIX_LED_GROUPS 8 | |||
#define MAX_DIGITS 10 | |||
#define MAX_PWM_CHANNELS 6 | |||
#define DISPLAY_FORMAT_TYPE_BASIC "basic" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see first comment