SparkFun Forums 

Where electronics enthusiasts find answers.

General project discussion area - What have you built with your Micro View

Moderators: marcus@geekammo, Help@GeekAmmo

By tester919
Hi I am interested in trying to make an arrow and rotating that arrow around. However I don't know how to rotate an object. Any math gurus out there know how to rotate this arrow by various degrees.


I looked at the rotating cube and I assume there is a lot of math which I didn't pay much attention to in school.

Thanks in advance
By tester919
I'm trying to create a compass... so trying to integrate the HMC5883L is anyone has any tips for that as well.
By Help@GeekAmmo
Hi tester919,

If you are creating a compass, it will be easier to redraw the arrow using XOR mode. First XOR draw the arrow display the arrow, second XOR draw the same arrow at the same location make it disappear. Then from the sensor work out the angle of the next draw.

If you look at our source code for the round widget, this will actually do similar to what you wanted to do. Just hacked the code and make the arrow turn round.

If the above suggestion is not suitable, then you might want to make the arrow as a bitmap arrow image in a memory block, then perform matrix rotation formula, and finally transfer the rotated memory to MicroView's memory. This sounds so much harder and slow.

Hope this helps.

long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]