Giter Club home page Giter Club logo

open-smartwatch-os's Introduction

HowTo Run

Please read the documentation on the website!

Prerequirements

  • install Platformio Core or Platformio IDE (which installes Pio core automatically)
  • For improved LUA Script support, see env:pico32_LIGHT_EDITION_PREBUILD_LUA: install SWIG (also available in most package managers, e.g. brew install swig)
  • Then clone this repository
git clone --recurse-submodules https://github.com/Open-Smartwatch/open-smartwatch-os.git

build (Visual Studio Code)

Open the cloned repo in VSCode

code open-smartwatch-os

and rename file include/config.h.example to include/config.h and adapt the values according to your requirements and press f5 to build it.

build (CLI)

You can instead go to the repo folder with your terminal and run

pio run -e pico32_LIGHT_EDITION -t upload

respectively

pio run -e pico32_GPS_EDITION -t upload

depending on the watch model.

Creating Screen Shots of your Apps

analog analog

  • Wifi needs to be able to connect for this to work.
  • you will need bash and imagemagick for the helper scripts to work

The raw screenserver runs in the background and prints via serial:

Started Raw ScreenServer
http://<IP_OF_WATCH>:8080/screen.raw

HowTo

  • add -D RAW_SCREEN_SERVER to your build flags in `platformio.ini``
  • build + flash + reset watch
  • wait for the server to be started (see msg above)
  • run bash fetchScreen.sh <IP_OF_WATCH> screenshot.png
  • run bash composeScreen.sh screenshot.png screenshot_composed.png

The fetchScreen.sh downloads the raw image buffer from the running screen server, and converts the image to png. The composeScreen.sh creates the image with a surrounding smartwatch (light edition).

Troubleshooting

Arduino_TFT.h: No such file or directory

You did not clone the repository with the --recursive-submodules flag.

'LANG_STW_START' was not declared in this scope

You did not rename include/config.h.example

Failed to connect to ESP32: Timed out waiting for packet header

You did not hold down BTN1(FLASH) and then tap the RESET button on the watch whilst platform.io was trying to connect.

open-smartwatch-os's People

Contributors

uvwxy avatar simonmicro avatar gpaddle avatar richtepa avatar seanreg avatar ruffalolavoisier avatar rawsignal avatar xasz avatar mpegg4 avatar tyler-scripps avatar max9901 avatar schl3nk3 avatar onegneissguy avatar matti04 avatar rickthad avatar morthersmort avatar jlevy-dev avatar apfelwurm avatar liyanboy74 avatar kristofkekesi avatar richardstarz avatar sckelemen avatar vedantparanjape avatar iksi4prs avatar rickseiden avatar thet3o 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.