Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time

STEP 1 - Get Started

  • In your watch, press the middle button

  • Use the bottom button to scroll down until you get to Settings

  • Press the middle button to select

  • Scroll down to Make Connectable

  • Select it, and leave on the 'Connectable' screen

  • Head to in Chrome

  • Click 'Connect' up the top left of the screen

  • Click 'Web Bluetooth'

  • Search for your Bangle.js (based on the last 4 digits) in the list of devices

You should hopefully be connected now! If not, take a look at, and we'll ba happy to help.

If you just want to get started and have an Android phone, you can use that too! If you don't have an external keyboard then you might want to install the free 'Hackers Keyboard' app to get access to arrow keys via touchscreen. You may also be able to mirror/control your phone from your PC.

Note: If you've used Espruino before, make sure the Upload button (middle of the screen) shows RAM underneath it. Otherwise by writing to Flash you can remove the watch's built-in menu (you can just re-add it using

Once connected

The Web IDE is made up out of two parts - there's the black REPL on the left, and a white editor on the right.

The REPL on the left is a direct connection to the watch and executes anything you type immediately - but be careful, it uses bracket counting to detect when to execute, so:

if (true) {;

will make your watch vibrate, but:

if (true)

With Enter rather than Alt-Enter will run three commands, the last two of which will cause an error. If you write your code in a K&R style then you're unlikely to hit issues - and if you write your code on the right, the line endings are handled automatically.

When writing on the right, you can click the button in the middle of the IDE to reset Bangle.js (temporarily!) and upload the code on the right hand side. However the initial code (that works on most Espruino devices!) will fail as there's no LED on Bangle.js.

You can now try some commands:

First, let's (temporarily) reset the watch and get rid of the connectable window:



on the left-hand side of the IDE. The Bangle.js logo will be displayed.;

Will make Bangle.js vibrate, and:


Will make it beep. You'll notice they return promises, so you can chain them: => {

You might want to clear the screen, in which case you can use g.clear(). A full list of Graphics commands is at:

If you want to write a message on the screen, you can use E.showMessage:

E.showMessage("Hello","A Title")

In general, Bangle.js specific functions/events are in the Bangle object, and Espruino-specific functions are in the E object

But the screen itself contains a VT100 terminal, so you can use Terminal.print and Terminal.println if you just want to log data:

Terminal.println("Hello World")

But these will scroll the screen up, which may make currently running apps look a bit strange!

It's worth noting that when you're disconnected from Bluetooth, Bangle.js will write any messages from console.log (as well as any Exceptions) to the display if Debug info is set to Show in Settings. This can be a great way of seeing if your app is failing in unexpected ways when in every day use.

Want to react to user input on the buttons? You can query the button state. BTN1 is the top button, BTN2 is the middle, BTN3 is the bottom:;

Will output true or false depending on the state of the middle button, but often we don't want to poll because that'd use battery.

Instead, you can use setWatch. This sets up the hardware to watch for a button press:

setWatch(() => {
  E.showMessage("You\npressed\nthe middle\nbutton!");
  setTimeout(()=>g.clear(), 1000);
}, BTN2);

At this point the code's getting longer, so you might want to copy this to the right-hand side of the IDE and then use the Upload button

By default, this will only happpen once, but you can add {repeat:true} to the end:

setWatch(() => {;
  E.showMessage("You\npressed\nthe middle\nbutton!");
  setTimeout(()=>g.clear(), 1000);
}, BTN2, {repeat:true});

The default is to detect button press, but you can also add edge:"falling" or edge:"both" if you want to detect when the button is released.