Linux client application for the MetaWatch smartwatch
Find a file
2012-08-21 18:12:34 +02:00
gtk-gui More callbacks, further GUI work 2011-08-27 20:38:16 +02:00
bt_helper.c Break out Bluetooth functions in own module 2011-08-13 13:41:24 +02:00
bt_helper.h Break out Bluetooth functions in own module 2011-08-13 13:41:24 +02:00
crc16ccitt.c Implement PBM read file and display 2011-07-23 21:32:08 +02:00
crc16ccitt.h Add CRC16 with reverse bit order 2011-07-19 12:31:32 +02:00
fonts.h Add drawing fcuntions for lines and strings incl. three fonts 2011-07-30 22:45:11 +02:00
Makefile Add new hackish bresenham line function to draw thicker lines, now used in analog clockface (cmd dana) 2011-12-01 00:21:11 +01:00
metawatch.c Improve cmd parameter parsing and handling 2011-11-13 13:49:10 +01:00
metawatch.h Update to spec 2011-11-12 00:15:16 +01:00
metawatch_protocol.h Add language selection 2012-08-17 11:25:04 +02:00
mw_main.c Ooops - fix typo 2012-08-21 18:12:34 +02:00
mw_utility.c Some minor bug fixes (prevent crashes in dana and upon quit) 2012-06-17 00:30:46 +02:00
mw_utility.h Add new hackish bresenham line function to draw thicker lines, now used in analog clockface (cmd dana) 2011-12-01 00:21:11 +01:00
pesthorn_sg.pbm Add test bitmaps 2011-08-27 20:38:44 +02:00
README.txt Add a small README to get started 2011-09-17 17:38:23 +02:00
test.pbm Add GTK test client, rework API with callbacks, make library 2011-08-13 13:22:22 +02:00
TODO.txt Add ToDo file 2011-08-28 17:09:54 +02:00
tux.pbm Add test bitmaps 2011-08-27 20:38:44 +02:00

For compilation of the mw_main test application the following additional
libraries are needed:

libbluetooth-dev
libdbus-glib-1-dev
libdbus-1-dev

On Debian/Ubuntu they can be installed like this (as user root) from the
commandline:

	apt-get install libbluetooth-dev libdbus-glib-1-dev libdbus-1-dev

After successful compilation you can try the application like this, inside
the course directory execute:

	./metawatch C1:F4:23:96:4E:79

(replace the BT MAC against the one of your watch)
It should connect and print the connected watch type - in most cases
"digital".
After that the application waist for input, from the watch and
keyboard/console. You can then try commands like "srtc" for setting the RTC
of the watch or "cal" to add a nice month calendar to the idle screen etc.

Currently supported commands (most zre just for testing):

- quit - exit the applicaition
- ahand # - advance the analogue watch hands by # minutes
- srtc - sets the watch RTC to the current system time
- grtc - get the RTC from the watch and print it
- gistr # - get and print one of the four info strings from the watch
  (firmwares up to 0.7.28 do not support this yet)
- gdtype - get and print watch device type
- rvbat - read and print the watch's battery voltage
- rlight - read and print the watch's ambient light sensor value
- modecfg - test command for mode settings, hardcoded to configure idle mode
- rbtfg - read and print watch button config
- svib - execute the watch vibration motor
- tbmp - test sending a sample bitmap
- t2bmp - another bitmap test ;)
- text - test text rendering of the library
- tline - test line drawing of the library
- rbmp - reads the b&w pbm bitmap file "test.pbm" and sends it to watch idle
  screen
- tnote - test notification mode
- tapp - test applicaiton mode
- eoled # - enable one of the OLED display of the analogue watch
- toled - test the analogue watch OLED displays (displays text)
- cal - draw a nice one moth calendar to the idle screen