Things used in this project

Hardware components:
O Watch Base Kit
×1
Software apps and online services:
Ide web
Arduino IDE

Code

O Watch Demo Arduino
//-------------------------------------------------------------------------------
//  O Watch Basic Example
//  Last Updated 17 February 2016
//  
//  This is just a basic demo of O Watch
//
//-------------------------------------------------------------------------------

#include <TinyScreen.h>
#include <SPI.h>
#include <Wire.h>

uint8_t amtcolors=7;
uint8_t colors[]={TS_8b_Black,TS_8b_Blue,TS_8b_Red,TS_8b_Green,TS_8b_White,TS_8b_Yellow,TS_8b_Brown};

uint8_t i=0;
  
uint8_t nextColor()
{
  if(i>=amtcolors)i=0;
  return colors[i++];
}

TinyScreen display = TinyScreen(TinyScreenPlus);

void setup(void) 
{
  Wire.begin();
  display.begin();
  display.setFlip(1);
  display.setFont(liberationSans_10ptFontInfo);
}

void loop() 
{
  display.clearWindow(0,0,96,64);
  for(int i=5;i<800;i++)
  {
    int x=(3000-(i*5))%90;
    int y=(i*14)%60;
    int width=((i*7)%(90-x));
    int height=((6000-(i*6))%(60-y));
    display.drawRect(x,y,constrain(width,5,20),constrain(height,5,15),i&1,nextColor());
    display.fontColor(TS_8b_White,TS_8b_Black);
    display.setCursor(5,25);
    display.print("   O   W a t c h   ");
    if(i<10)
      delay(40);
    if(i<50)
      delay(40);
  }
  delay(50);
  display.clearWindow(0,0,96,64);
}
TinyScreen+ LibraryC/C++
No preview (download only).

Credits

Owatchlogofebsmall
O Watch
9 projects • 13 followers
Make your own smartwatch. Learn 3D design and Arduino coding.
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog