It is currently Wed Jul 06, 2011 7:24 pm

All times are UTC - 8 hours




 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: World Map (Day 10)
PostPosted: Tue May 03, 2011 5:52 pm 

Joined: Sun Feb 27, 2011 11:32 am
Posts: 71
Image
Day 10 of my 30 days of watches is a side scrolling world map based on NASA's topo map. The current world "noon" is highlighted under the yellow sun, so the map makes one rotation per day. The local time is displayed around the tropic of Capricorn. When the button is pressed the world spins to display the entire map and ends up back at the local noon.

The screen redraw isn't very fluid, unfortunately. Without a bit blitter, it is necessary to draw each vertical scanline, which gives it the characteristic "inch worm" effect. Since the pulse_draw_image() API doesn't give us the ability to draw subrectangles of the large image, the makefile splits the original NASA image into 256 1x128 images and then selects which ones to draw.

The timezone is hardcoded as hours west of GMT. YMMV may vary.

Source: https://bitbucket.org/hudson/watches/src/tip/topo/
Video: http://www.flickr.com/photos/osr/568585 ... 084215019/


Offline
 Profile  
 
 Post subject: Re: World Map (Day 10)
PostPosted: Tue May 03, 2011 9:40 pm 

Joined: Sun Apr 17, 2011 9:32 pm
Posts: 4
My world clock app also suffers from a noticeably slow screen redraw. I added interlacing to help make it a bit more fluid. However my map is painted in horizontal scanlines - I'm not sure how interlacing would look with vertical lines.



_________________
inPulse firmware engineer
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: