Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install pebble sdk in mac

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "mac how to install pebble sdk", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "mac how to install pebble sdk" this article.

# install pebble sdk using homebrew

Install pebble cli tools

Brew install pebble-sdk

After installation, we have the command line tool pebble. At this time, sdk is not actually installed. Try pebble-- version to verify whether it is correct.

Install the latest version of sdk

# install pebble sdk install latest online

After agreeing to the developer agreement, you can start downloading and installing sdk. However, due to the local trial has been failed to download, so consider using offline installation

# offline installation

First determine the sdk version number. You can view the available versions through pebble sdk list.

Installed SDKs:Available SDKs (beta channel): 3.12-beta6 (beta) 3.11.13.113.10.13.103.10-beta6 (beta) 3.10-beta2 (beta) 3.10-beta1 (beta) 3.9.23.93.9-beta8 (beta) 3.9-beta7 (beta) 3.9-beta5 (beta) 3.8.23.8.13.83.8-beta12 (beta) 3.8-beta10 (beta) 3.8-beta8 (beta) 3. 73.6.23.43.33.2.13.13.02.9

The latest version (2016.6.1) is 3.12, so download the following sdk offline package (size 2.9m), http://s3.amazonaws.com/assets.getpebble.com/sdk3/release/sdk-core-3.12.tar.bz2

After downloading, go to the directory where the file is located and execute it.

Pebble sdk install sdk-core-3.12.tar.bz2 completes installation

Start development

Finally, at the beginning of the development stage, I used the tools for pebble + vim to develop (it is a bit of a pity that ycm supports pebble).

Newly built project

Pebble new-project hello_world

Build

Cd hello_world

Pebble build

Simulation test

Pebble has a simulation environment to test the display effect of our program, which is very convenient

Pebble install-emulator basalt

Just after executing the above sentence, the default application is installed on the simulation environment.

The virtual keys corresponding to the top and bottom of the physical keyboard are: up-> up, down- > down, left- > back, right- > select

If you change the application type to watchface (modify the appinfo.json watchapp.watchface in the project directory), the button will not be captured by the application (because up,down will be cut to timeline)

The above is all the contents of the article "how to install pebble sdk in mac". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report