LCD.image, image rotation



  • Hi there,

    I've got an angular sensor mounted on a dial and I would like to rotate my virtual dial (image) to the measured angle.
    This is not trivial but I expect someone else must have solved this problem all ready.

    The sensor is 12bit or ~4k different angles. For simplicity 400 angles would be sufficient.
    What I came up with is to create 400 images, each with a different angle and draw the image accordingly.
    The other solution would be to draw the image myself by pixel manipulation, this is possible but will take a lot of effort.

    Secondly I would like to have the center of rotation outside of the screen so I can do something like this:
    0_1603031782191_fb73e703-120e-493e-adc9-bb80bfdb7f3e-image.png

    I did see an example of this but cannot find the example.
    I believe it was a radio tuner with an oled display that did exactly what I'm trying to do.

    Thanks for the help.



  • I have found the example I wrote about in the first post.
    It does not seem to rotate images but generates the dial in the fly.

    It's a very cool project anyways:
    https://tj-lab.org/2019/02/17/vfo5/



  • At this moment I don't think the tools exist to rotate images on the screen.
    I've made an attempt at creating the 400 sprites and it's for now the best solution.