Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mteichtahl
Copy link
Owner

- Basic - no -ve support, no leading zero
- Advanced - 0 left padded, leading zero support, -ve support

	- Basic - no -ve support, no leading zero
	- Advanced - 0 left padded, leading zero support, -ve support
Copy link
Collaborator

@lurkerbot lurkerbot left a 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)
Copy link
Collaborator

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) {
Copy link
Collaborator

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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see first comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants