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

Image rotation #1

Open
Jaycar-Electronics opened this issue Aug 21, 2019 · 0 comments
Open

Image rotation #1

Jaycar-Electronics opened this issue Aug 21, 2019 · 0 comments

Comments

@Jaycar-Electronics
Copy link
Owner

At the moment the image does not render properly.
it would be best to check the image width / height, and transmit the data packets in either a row-first or column-first order;

it might be possible to do via sending the params out of order:

ie: in espcode.ino ~line 270

Serial.print(F(">>>")); //start of data tag
send16(mcu_pixels);     // number of pixels in this block
if (landscape)
{
    send16(mcu_x);   // position x
    send16(mcu_y);   // position y
    send32(param_x); // width
    send32(param_y); // height
}
else
{
    send16(mcu_y);   // position x is now the old y.
    send16(mcu_x);   // position y is now the old x. (swivel.)
    send32(param_y); // the width is the height of the old picture.
    send32(param_x); // the height is the width of the old picture
}

however you might have to transpose the pImg data as well.

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