James Haggerty 78eb0c0c97 Fix command line in simulator
In the original movement, the 'usb enabled' check was overridden
to true for the simulator such that shell_task() would always
be executed. In the new 'dummy' device in gossamer used by the
simulator, this usb check returns false.

Seemed like a slightly cleaner thing to do was to call
shell_task() regardless rather than to incorrectly
pretend that USB was connected.
2025-07-28 09:23:54 -04:00
2025-07-06 15:33:56 -04:00
2025-07-06 11:34:06 -04:00
2025-04-21 00:16:23 -04:00
2024-10-10 20:57:57 -04:00
2025-04-21 00:16:23 -04:00
2025-03-08 16:14:03 -05:00
2025-07-06 12:40:06 -04:00
2024-09-18 13:04:43 -04:00
2025-07-04 11:04:13 -04:00
2025-07-28 09:23:54 -04:00
2025-07-07 19:16:19 -04:00

Second Movement

This is a work-in-progress refactor of the Movement firmware for Sensor Watch.

Getting dependencies

You will need to install the GNU Arm Embedded Toolchain to build projects for the watch. If you're using Debian or Ubuntu, it should be sufficient to apt install gcc-arm-none-eabi.

You will need to fetch the git submodules for this repository too, with git submodule update --init --recursive

Building Second Movement

You can build the default watch firmware with:

make BOARD=board_type DISPLAY=display_type

where board_type is any of:

  • sensorwatch_pro
  • sensorwatch_green
  • sensorwatch_red (also known as Sensor Watch Lite)
  • sensorwatch_blue

and display_type is any of:

  • classic
  • custom

Optionally you can set the watch time when building the firmware using TIMESET=minute.

TIMESET can be defined as:

  • year = Sets the year to the PC's
  • day = Sets the default time down to the day (year, month, day)
  • minute = Sets the default time down to the minute (year, month, day, hour, minute)

If you'd like to modify which faces are built and included in the firmware, edit movement_config.h. You will get a compilation error if you enable more faces than the watch can store.

Installing firmware to the watch

To install the firmware onto your Sensor Watch board, plug the watch into your USB port and double tap the tiny Reset button on the back of the board. You should see the LED light up red and begin pulsing. (If it does not, make sure you didnt plug the board in upside down). Once you see the WATCHBOOT drive appear on your desktop, type make install. This will convert your compiled program to a UF2 file, and copy it over to the watch.

If you want to do this step manually, copy /build/firmware.uf2 to your watch.

Emulating the firmware

You may want to test out changes in the emulator first. To do this, you'll need to install emscripten, then run:

emmake make BOARD=sensorwatch_red DISPLAY=classic
python3 -m http.server -d build-sim

Finally, visit firmware.html to see your work.

Description
Work-in-progress update to Movement, the community firmware for Sensor Watch
Readme 17 MiB
Languages
C 86%
HTML 5.2%
Python 5%
C++ 3.2%
Shell 0.3%
Other 0.2%