Skip to content

A library for interfacing an Arduino to a MetaWatch (using a BlueSMiRF for connectivity).

License

Notifications You must be signed in to change notification settings

JLJames/SparkFun_MetaWatch_Library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SparkFun MetaWatch Arduino Library

Use an Arduino/BlueSMiRF combo to control the bluetooth-enabled MetaWatch.

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • library.properties - General library properties for the Arduino package manager.

Documentation

License Information

The code is beerware; if you see me (or any other SparkFun employee) at the local, and you've found our code helpful, please buy us a round!

Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anything derivative under the same license.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.

How to use the library

This library provides the following functions:

  • SFE_MetaWatch constructor
  • void begin()
  • void echoMode();
  • int connect();
  • void setTime(unsigned int year, unsigned char month, unsigned char date, unsigned char weekDay, unsigned char hour, unsigned char minute, unsigned char second);
  • void vibrate(unsigned int onTime, unsigned int offTime, unsigned char numCycles);
  • void update(unsigned char page, unsigned char start=0, unsigned char end=96, unsigned char style=1, unsigned char buffer=1, unsigned char mode=0);
  • void clear(unsigned char black);
  • void setWidget(unsigned char msgTotal, unsigned char msgIndex, unsigned char * widgIDSet, unsigned char numWidg);
  • void fullScreen(unsigned char full);
  • void readBattery();
  • void reset();
  • void setBacklight(unsigned char set);
  • void sendPacket(unsigned char * data, int length, unsigned char * response, int responseLength);

Author

Jim Lindblom
SparkFun Electronics
August 13, 2013

About

A library for interfacing an Arduino to a MetaWatch (using a BlueSMiRF for connectivity).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%