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

Simplified ssd1306_UpdateScreen(). #43

Closed
wants to merge 1 commit into from
Closed

Simplified ssd1306_UpdateScreen(). #43

wants to merge 1 commit into from

Conversation

Hertz-Hu
Copy link

No description provided.

ssd1306_WriteCommand(0x10);
ssd1306_WriteData(&SSD1306_Buffer[SSD1306_WIDTH*i],SSD1306_WIDTH);
}
#if defined(SSD1306_USE_SPI)
Copy link
Owner

Choose a reason for hiding this comment

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

I'm afraid I don't get it. Why the code should differ for I2C and SPI?

Copy link
Author

Choose a reason for hiding this comment

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

Same as a previous code edit:
These three ssd1306_WriteCommand() is used to tell SSD1306 which address do you want to begin to write into. The three are necessary for SPI, but ont necessary for I2C.
Because I2C has function HAL_I2C_Mem_Write_DMA(), you can pass the GRAM start address to it, but I did not find such a function for SPI.
You suggested me to submit this change as a separate PR.

@afiskon
Copy link
Owner

afiskon commented Jul 17, 2021

@TargetTriple Once again, many thanks for the pull requests. I very much appreciate your desire to improve the library.

After thinking about it I decided to decline both pull requests #43 and #45 I don't care much about DMA support, at least at present, and don't feel like maintaining suggested code. I suggest creating a fork of the library if that feels necessary.

@afiskon afiskon closed this Jul 17, 2021
@Hertz-Hu Hertz-Hu deleted the simplify branch July 30, 2021 14:56
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