Hi All,
Not sure if this the right forum (happy to be pointed elsewhere). My son is attempting to compile his first TinyDuino program for the O Watch. He's followed the instructions to install the board and library but he is unable to compile the sample application.
#include <font.h>
#include <TinyScreen.h>
/*
* Hello World
* This is a simple program that blinks 'Hello World'
* This for the Arduino compatible TinyScreen+ by http://tiny-circuits.com
*
* This example is in the public domain.
* Published 29 Feb 2016
* by O Watch http://theowatch.com
*
*/
#include <TinyScreen.h> //Include TinyScreen library
TinyScreen display = TinyScreen(TinyScreenPlus); //Set TinyScreen board type
int delaytime = 1000; //Declaring a variable to set the delay between text blink
// The setup function runs once when you power on the board
void setup()
{
display.begin(); //Initializes TinyScreen board
display.setFlip(1); //Flips the TinyScreen rightside up for O Watch
display.on(); //Turns TinyScreen display on
display.setFont(liberationSansNarrow_12ptFontInfo); //Set the fornt type
display.fontColor(TS_8b_Blue,TS_8b_Black); //Set the font color, font background
display.setBrightness(10); //Set display brightness 0 - 15
}
// the loop function runs over and over again forever
void loop()
{
display.setCursor(15,25); //set the cursor to x, y position, where to start next print/draw instruction
display.print("Hello World!"); //print command
delay(delaytime); //delay for 1000 milliseconds or one second
display.clearScreen(); //clears the screen blank
delay(delaytime); //delay again for one second
}
He's getting the following errors:
Arduino: 1.6.8 (Mac OS X), Board: "TinyScreen+"
/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware "/Applications/Arduino.app/Contents/Java/hardware" -hardware "/Users/ian/Library/Arduino15/packages" -tools
... {removed compilation messages to shorten listing}
"/var/folders/7g/nv9q5r4130nd95dwpz2xj0gm0000gp/T/build62a4642ee166ff819f0058ef52a39f5d.tmp/sketch/OWatch_Hello_World.ino.cpp.o"
In file included from /Users/ian/Documents/Arduino/OWatch_Hello_World/OWatch_Hello_World.ino:1:0:
/Users/ian/Documents/Arduino/libraries/TinyCircuits-TinyScreen_Lib-master/font.h:754:14: error: 'FONT_CHAR_INFO' does not name a type
static const FONT_CHAR_INFO PROGMEM liberationSans_8ptDescriptors[] =
^
/Users/ian/Documents/Arduino/libraries/TinyCircuits-TinyScreen_Lib-master/font.h:854:14: error: 'FONT_INFO' does not name a type
static const FONT_INFO liberationSans_8ptFontInfo =
^
... {removed similar messages to shorten listing}
In file included from /Users/ian/Documents/Arduino/libraries/TinyCircuits-TinyScreen_Lib-master/TinyScreen.h:134:0,
from /Users/ian/Documents/Arduino/OWatch_Hello_World/OWatch_Hello_World.ino:2:
/Users/ian/Documents/Arduino/libraries/TinyCircuits-TinyScreen_Lib-master/font.h:17:62: error: redefinition of 'const unsigned char liberationSans_8ptBitmaps []'
static const unsigned char PROGMEM liberationSans_8ptBitmaps[] =
^
In file included from /Users/ian/Documents/Arduino/OWatch_Hello_World/OWatch_Hello_World.ino:1:0:
/Users/ian/Documents/Arduino/libraries/TinyCircuits-TinyScreen_Lib-master/font.h:17:36: error: 'const unsigned char liberationSans_8ptBitmaps [1078]' previously defined here
static const unsigned char PROGMEM liberationSans_8ptBitmaps[] =
... {removed similar messages to shorten listing}
Using library TinyCircuits-TinyScreen_Lib-master at version 1.1.0 in folder: /Users/ian/Documents/Arduino/libraries/TinyCircuits-TinyScreen_Lib-master
Using library SPI at version 1.0 in folder: /Users/ian/Library/Arduino15/packages/TinyCircuits/hardware/samd/1.0.1/libraries/SPI
Using library Wire at version 1.0 in folder: /Users/ian/Library/Arduino15/packages/TinyCircuits/hardware/samd/1.0.1/libraries/Wire
exit status 1
Error compiling for board TinyScreen+.
Has anyone else seen this? It looks like there is a missing set of fonts or font definitions. Any help/pointers appreciated.
Regards,
Chuck