Skip to content

pebble-examples/cards-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cards Example

This example shows how to implement a really cool cards based app. It demonstrates the use of the new Pebble Draw Commands API, which allows you to draw and animate vector graphics on Pebble.

Tools

The SVG2PDC script converts SVG images to a PDC (Pebble Draw Command) binary format image or sequence.

Usage

First install all the python dependencies

pip install -r requirements.txt

Then use the SVG2PDC tool to convert an SVG to PDC. Note that this will generate the PDC in the same directory as the source file (SVG).

python tools/svg2pdc.py resources/Pebble_50x50_Generic_weather.svg

Testing

Change the BACKGROUND_SCROLL_DURATION and SCROLL_DURATION in weather_app.c to see what's happening under the hood.

License

MIT

About

Pebble Draw Commands example with a cards based app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •