Skip to content
Pebble Draw Commands example with a cards based app
C Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources Update for 3.0-beta10 May 2, 2015
screenshots Initial commit. Apr 10, 2015
src Update for SDK 3 on Aplite Nov 17, 2015
tools Merge pull request #4 from gregoiresage/master Dec 3, 2015
.gitignore Initial commit. Apr 10, 2015
LICENSE Initial commit. Apr 10, 2015
README.md Initial commit. Apr 10, 2015
appinfo.json Update for SDK 3 on Aplite Nov 17, 2015
requirements.txt Initial commit. Apr 10, 2015
wscript Initial commit. Apr 10, 2015

README.md

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

You can’t perform that action at this time.