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

ssd1306: simple driver with user application #52

Open
wants to merge 1 commit into
base: Sergii.Romantsov
Choose a base branch
from

Conversation

sergiiromantsov
Copy link

Added base implemantaion of lcd-driver.
Added slightly improved user-aplication: avoided redundant redrawing.
Added sample of uEnv.txt that allows to use i2c1 for ssd1306.
Rude disabling of hdmi in device tree: for some reason was created
fb0 and no interruption were received for fb1 (ssd1306) and cape_disable doesn't work for that purpose.

Added base implemantaion of lcd-driver.
Added slightly improved user-aplication: avoided redundant redrawing.
Added sample of uEnv.txt that allows to use i2c1 for ssd1306.
Rude disabling of hdmi in device tree: for some reason was created
fb0 and no interruption were received for fb1 (ssd1306).
struct ssd1306_data *lcd =
container_of(work, struct ssd1306_data, display_update_ws);
ssd1307fb_update_display(lcd);
//ssd1306_UpdateScreen(lcd);

Choose a reason for hiding this comment

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

remove unnesessary comments/lines


if (copy_from_user(dst, buf, count)) {
pr_err("%s copy_from_user", __FUNCTION__);
//return -EFAULT;

Choose a reason for hiding this comment

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

fb_sys_write method could be called there

return -ENOMEM;
}

vmem = lcd_vmem;//&ssd1306_Buffer[0];

Choose a reason for hiding this comment

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

please fix checkpatch issues

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