Linux client application for the MetaWatch smartwatch
Find a file
2011-11-11 23:56:13 +01: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 button message callback handling and sample code 2011-11-09 00:11:14 +01:00
metawatch.c Implement battery warning and bt-off message handlers and callbacks 2011-11-11 23:56:13 +01:00
metawatch.h Implement battery warning and bt-off message handlers and callbacks 2011-11-11 23:56:13 +01:00
metawatch_protocol.h Makefile cleanup, start implementation of nval commands (not working yet) 2011-11-04 21:26:50 +01:00
mw_main.c Fix and extend get_light_sensor and get_voltage, move system clock query out of library set_rtc function 2011-11-11 23:09:39 +01:00
mw_utility.c More callbacks, further GUI work 2011-08-27 20:38:16 +02:00
mw_utility.h More callbacks, further GUI work 2011-08-27 20:38:16 +02: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