How to Pebble with Windows and Visual Studio
- Posted: May 23, 2014 at 6:00 AM
- 13,328 Views
El Bruno, aka Bruno Capuano, a Coding4Fun Friend, has been playing his new Pebble watch and sharing how you can write your own apps for it, using the tools all of you will likely have, Windows, Visual Studio, etc. :)
Between trip and trip I will take some time to write a little bit about how to manage to develop apps for the Pebble SmartWatch in Windows. The first thing we have to know is that there is no official SDK for Windows; after asking this question in the forums you’ll find out that the only supported environments are iOS and Android. Whit that said the single SDK is available for MacOS and Linux, I don’t know if nobody not told pebble people that also there are developers who create apps for these platforms under windows, as always > no problem.
The option to develop in Windows (or other platform) is possible thanks to CloudPebble. In this website you can find an IDE online that lets you create apps for Pebble and then deploy them to the watch. As any web IDE capabilities offered by us are basic, however are enough to create apps. Let us remember that we create apps in C, so proper management that we make our resources than an IDE with many options is most important.
The following image shows the development of CloudPebble environment and in it we can see the editor of code to our right, and some basic options to the left to add files, resources, etc.
While the Pebble community is not very friendly with Microsoft tools, that does not mean that we can’t use them to create our apps. Here you can see several entries in the Pebble Developers Forum talking about Pebble with WP integration, the use of Visual Studio, and other topics.
A development environment (IDE) is quite complex, and while CloudPebble is a very good option, however Visual Studio is the best IDE (sorry fan boys, etc. etc. etc., is matter of taste). So I’m going to show a series of steps that allow the basics of a Pebble project in Visual Studio.
Important: in this case, what I will do is starting a project with a created valid .c file in CloudPebble .
1. download the SDK for Pebble Linux from here. Yes, you read well, the SDK for Linux
2. unzip it, for this example I use the location “E:\srcElBruno\Tests\Peeble\PebbleSDK-2.1.1\”. The important path is “E:\srcElBruno\Tests\Peeble\PebbleSDK-2.1.1\Pebble\” which is where you will find all the resources of compilation of Pebble.
3. in Visual Studio 2013, creating a Visual C++ project / Makefile Project
See more related posts check out his Pebble tagged posts, such as his recent [#PEBBLE] Working with buttons (III) and some animations post.