Code Monkey home page Code Monkey logo

p8apps's Introduction

banner

P8 App Loader (Execution Environment and Apps)

The repository contains a set of Espruino Apps for the P8 Smartwatch together with drivers to support these Apps. The following video demonstrates some of these:

https://youtu.be/cHj_lXSNEv0

This is very much based on the excellent Bangle.js and some Bangle apps and widgets require very little change to run on the P8.

Installation

For a brand-new P8, you need to follow the instructions here produced by @fanoush to get the right bootloader required by Espruino - SDK12 with Softdevice S132 3.0. After that you can flash this firmware:

espruino_2v08.316_p8_SDK12_SD30_SPIFLASH.zip

This build has a modified lcd_spi_unbuf module that works with SPI FLASH. The build makes the full 4 megabytes available to Espruino applications. In addition, there is a small hack to bluetooth to support the ANCS widget that connects to an iPhone.

Once Espruino is involved use the P8 App Loader to load Bootloader, Launcher and Settings followed by the apps and widgets you want.

To change Apps, a long touch on the touch screen will start the launch app. In addition, the P8 will display P8 Espruino when first booted and a long touch is required to start launch.

Warning

There is a distinct possibility of "bricking" your P8.

To mitigate this risk, boot sets a watchdog timer and if you press the button and hold it for over 5 seconds, the P8 should reboot when you release the button. If there is no response, let the battery go flat and the P8 should restart when you connect the charger.

Do not use clearWatch() anywhere as it kills both the button and the touch screen.

Credits

@ATC1441, reverse engineered the DaFit app and wrote DaFlasher which allows you to replace the firmware the P8 comes with.

@Fanoush, for the Espruino builds/bootloader and his help with getting the LCD driver to work.

@gfwilliams, for Espruino and for the Bangle App Loader used here. If you want a hassle free watch you can program off the shelf get a Bangle.js.

@jeffmer, for P8apps drivers and main thing.

p8apps's People

Contributors

ysfsvm avatar jeffmer avatar athokay avatar busbuyukefe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.