This page contains some instructions that are different if you're using CloudPebble or if you're using the SDK locally on your computer.
Select whether you're using CloudPebble or the SDK below to show the relevant instructions!
Showing instructions for CloudPebble. Not using CloudPebble?
Showing instructions for the SDK. Using CloudPebble?
The Pebble SDK allows apps to include extra files as app resources. These files can include images, animated images, vector images, custom fonts, and raw data files. These resources are stored in flash memory and loaded when required by the SDK. Apps that use a large number of resources should consider only keeping in memory those that are immediately required.
The maximum number of resources an app can include is 256. In addition, the maximum size of all resources bundled into a built app is 128 kB on the Aplite platform, and 256 kB on the Basalt and Chalk platforms. These limits include resources used by included Pebble Packages.
App resources are included in a project by being listed in the
package.json, and are converted into suitable firmware-compatible formats
at build time. Examples of this are shown in each type of resource's respective
App resources are included in a project by clicking the 'Add New' button under 'Resources' and specifying the 'Resource Type' as appropriate. These are then converted into suitable firmware-compatible formats at build time.
Animated Images - How to add animated image resources to a project in the APNG format, and display them in your app.
App Assets - A collection of assets for use as resources in Pebble apps.
Converting SVG to PDC - How to create compatible SVG files using Inkscape and Illustrator.
Fonts - How to use built-in system fonts, or add your own font resources to a project.
Images - How to add image resources to a project and display them in your app.
Pebble Draw Command File Format - The binary file format description for Pebble Draw Command Frames, Images and Sequences.
Platform-specific Resources - How to include different resources for different platforms, as well as how to include a resource only on a particular platform.
Raw Data Files - How to add raw data resources to a project and read them in your app.
System Fonts - A complete list of all the system fonts available for use in Pebble projects.