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

Hello, I would like to ask a question about refreshing the screen. #7

Open
jackmiaomiao opened this issue Jan 3, 2025 · 1 comment

Comments

@jackmiaomiao
Copy link

In the LedWallRefresh () function set_row_signal (y% 2 * DISPLAY_SCAN_LINES/2 + x); this works for screens with Y = 32 or 64 resolution. But my screen portrait resolution is 26, and since 26/16 is not an integer, how do I modify the calculation to pass set_row_signal

@jackmiaomiao
Copy link
Author

$_2_06L@5{) }P1~K4CBAS_tmb
I put the line selection function set_row_signal (y) in the outermost loop for (unsigned int y = 0; y < DISPLAY_SCAN_LINES; y ++), but the cost is very high, causing my screen refresh rate to drop by half! I still want to use a line selection like set_row_signal (y% 2 * DISPLAY_SCAN_LINES/2 + x). But my screen portrait resolution is 52 and not divisible by 16, and the refreshed line will be repeatedly selected in the X loop

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

No branches or pull requests

1 participant