Sample Game on Wio Terminal

I got my Wio Terminal. Am I understand correctly that the sample game come with the product will be erased when I send my first code from Arduino IDE to the Wio Terminal? Any way to restore the sample game and make the Wio Terminal like when delivered? I’m a bit hesitate to write programs as I want to keep the sample game on the Wio Terminal.

Stephen Wong

1 Like

We’ve made the source code available and you can always download and install it again with the Arduino IDE whenever you need it.

1 Like

What is the exact procedure for installing this Sketchbook to the Arduino GUI where do I put the file and should it be unzipped?

Download the Seeed-Studio/ Seeed_Arduino_Sketchbook Repo form github, and Open the jumper.ino from the example -> jumper folder.

Then upload the Arduino sketch to the Wio Terminal.

The Arduino Sdk can’t find Seeedfs.h and other Seeed and Wio specific libraries and wont compile. How do I install the necessary libraries? Many Thanks

I got the other libraries but the compile cannot find sfud.h
Arduino: 1.8.13 (Windows 10), Board: “Seeeduino Wio Terminal, Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), Arduino, Off”

In file included from D:\Arduino\sketches\libraries\Seeed_Arduino_FS-master\src\SFUD\Seeed_SFUD.cpp:8:0:

D:\Arduino\sketches\libraries\Seeed_Arduino_FS-master\src\SFUD\Seeed_SFUD.h:18:10: fatal error: sfud.h: No such file or directory

#include <sfud.h>

      ^~~~~~~~

compilation terminated.

exit status 1

Error compiling for board Seeeduino Wio Terminal.

This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.

You need to install these libraries

  • Install the LCD screen library Seeed_Arduino_LCD , please visit Wio Terminal Overview for more information.
  • Install the SD Card library Seeed_Arduino_FS , Please visit Seeed-Arduino-FS for more information.
  • Install the RawImage.h library, Please visit Loading Images for more information.

src: https://wiki.seeedstudio.com/Wio-Terminal-Displaying-Photos/

1 Like

I installed libraries and put the necessary h files in my libraries location but I’m still getting the following message Could something be in the wrong location?
Arduino: 1.8.13 (Windows 10), Board: “Seeeduino Wio Terminal, Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), Arduino, Off”

In file included from D:\Arduino\Sketches\libraries\Seeed_Arduino_FS-master\src\SFUD\Seeed_SFUD.cpp:8:0:

D:\Arduino\Sketches\libraries\Seeed_Arduino_FS-master\src\SFUD\Seeed_SFUD.h:18:10: fatal error: sfud.h: No such file or directory

#include <sfud.h>

      ^~~~~~~~

compilation terminated.

exit status 1

Error compiling for board Seeeduino Wio Terminal.

This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.

Where do I get sfud.h and where do I place it to get correct compile?

Can you try to include this library Seeed_Arduino_SFUD

I tried to compile the example code and didn’t find any compilation error.

1 Like

Hi @laefsky
You should change the code of #include <sfud.h> into #include <SFUD.h>.
Because the document was named SFUD.h in the library, not sfud.h.

1 Like

My problems at this point seem to be with some declarations? in the file TCC0.cpp

I’m getting desperate until I can successfully get the demo to compile so I can reload to the Wio Terminal I’m afraid of loading any other software and not being able to recover the device to its original state.

I have managed ok till now with most of the library inclusions especially in light of your suggestions but need these files (TCC0.cpp and TCC0.h)
to allow correct upload to the Wio Terminal
These are the error messages I’m getting from the compiler:
Arduino: 1.8.13 (Windows 10), Board: “Seeeduino Wio Terminal, Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), Arduino, Off”

C:\Users\laefs\AppData\Local\Arduino15\packages\Seeeduino\hardware\samd\1.7.9\libraries\TimerTCC0\TimerTCC0.cpp: In member function ‘void TimerTCC0::initialize(long int)’:

C:\Users\laefs\AppData\Local\Arduino15\packages\Seeeduino\hardware\samd\1.7.9\libraries\TimerTCC0\TimerTCC0.cpp:27:5: error: ‘REG_GCLK_CLKCTRL’ was not declared in this scope

 REG_GCLK_CLKCTRL = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID_TCC0_TCC1) ;

 ^~~~~~~~~~~~~~~~

C:\Users\laefs\AppData\Local\Arduino15\packages\Seeeduino\hardware\samd\1.7.9\libraries\TimerTCC0\TimerTCC0.cpp:27:5: note: suggested alternative: ‘REG_GCLK_GENCTRL0’

 REG_GCLK_CLKCTRL = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN
```e I

Hi @laefsky
As suggested in the error messages, please try to change the REG_GCLK_CLKCTRL into REG_GCLK_GENCTRL0 in the TimerTCC0.cpp.

what about gambling games?

These are great tips not only for beginners but also for experienced gamblers. Gambling taught me to learn new tricks and strategies constantly. If you play and only believe in luck, then you have a low chance of success. I have a number of my own rules that I regularly post on my Twitter. First of all, you need to find a reliable online casino where you can enjoy the game and, in parallel, create your winning strategies. Against the background of frequent losses, I became addicted to gambling, but I successfully coped with it and started playing with a new strategy here, iNasports88.

Copied the jumper code directly from here

Then had to install Adafruit_zerotimer, then Arduino_FS-master, then this one popped up. How do I download a raw.h? I can’t find it anywhere. Total beginner here.

/private/var/folders/35/dxx0t0k94r3_mwmbrf7zysrm0000gn/T/.arduinoIDE-unsaved2022923-59582-1eq9ma8.dajfi/sketch_oct23a/sketch_oct23a.ino:17:10: fatal error: raw.h: No such file or directory
#include “raw.h”
^~~~~~~
compilation terminated.

exit status 1

Compilation error: raw.h: No such file or directory