From 637c60f998ca391eeea7383a3b8839e4991c3bf4 Mon Sep 17 00:00:00 2001 From: connerbrooks Date: Fri, 28 Mar 2014 17:07:09 -0500 Subject: [PATCH 1/2] Update pebble docs --- pebble.rst | 23 +++++++++++++++++++++++ sensors.rst | 1 + 2 files changed, 24 insertions(+) diff --git a/pebble.rst b/pebble.rst index ef89177..ae48806 100644 --- a/pebble.rst +++ b/pebble.rst @@ -42,3 +42,26 @@ This script demonstrates pebble click events, setting text in the view, vibratio +pebbleSetTitle(String text, boolean clear) : void + Set the title text area on the pebble view. + +pebbleSetSubtitle(String text, boolean clear) : void + Set the subtitle text area on pebble view. + +pebbleSetBody(String text, boolean clear) : void + Set the body text area on pebble view. + + :text(string): text to display on pebble + :clear(boolean): boolean to clear other text areas (true clears all other text areas) + +pebbleVibe(int vibeType) + Vibrate pebble. + +======== ======= + Type Value +======== ======= +short 0 +long 1 +double 2 +======== ======= + diff --git a/sensors.rst b/sensors.rst index 968bce0..56f8992 100644 --- a/sensors.rst +++ b/sensors.rst @@ -27,6 +27,7 @@ Sensors have unique names and integer types that are used internally and can be =================== ======= Type Value =================== ======= +pebble -7 pupil -2 gps -1 accelerometer 1 From 02113cda0b2cc0d7bc5832ddaddee64debb2a735 Mon Sep 17 00:00:00 2001 From: connerbrooks Date: Wed, 9 Apr 2014 18:49:29 -0500 Subject: [PATCH 2/2] Update docs with gesture subscription --- pebble.rst | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/pebble.rst b/pebble.rst index ae48806..c103cd1 100644 --- a/pebble.rst +++ b/pebble.rst @@ -42,6 +42,35 @@ This script demonstrates pebble click events, setting text in the view, vibratio + +You can also subscribe to pebble gestures. + +.. code-block:: html + + + + + +API +=== + pebbleSetTitle(String text, boolean clear) : void Set the title text area on the pebble view.