Learning to Program the TinyConsole!

This guide will teach you how to setup your computer to upload software and games to your TinyConsole.

 

The tiny square black chip in the bottom centre of the TinyConsole is called a Microcontroller
and it is the brains of the device.
This tiny 8-bit computer contains all of the instructions, graphics,
and sound to produce the game played on the device.

Step 1:

we can reprogram the TinyConsole, and change the game on it, using a SOIC 8 Pin Programer Clamp cable and some software called Arduino.

Step 2:

Before we can reprogram the TinyConsole we need to setup a few things first. We will download some libraries that are necessary to compile code for the TinyConsole.

Compiling code means to take the human readable C++ code into binary machine language that the Microcontroller can understand.

 

in order for the chip to work with the OLED Display, buttons and speaker we need to download some libraries.

 

Libraries are special instructions that wizards in the TinyConsole  has written to optimize the way we draw graphics, create sound and many other things.

 

Use Arduino’s menu to select the Library Manager:

Sketch > Include Library > Manage Libraries…

 

Step 3:

There are a few libraries that are helpful to download to get started, the easiest way to find them is to search for “TinyConsole”.

Here is a list of libraries we recommend installing:

ATtinyCore:  Programming an ATtiny w/ Arduino 1.6 (or 1.0)

SSD1306 library courtesy of Tinusaur: https://bitbucket.org/tinusaur/ssd1306xled

Download the Arduino IDE  https://www.arduino.cc/en/Main/Software

 

Step 4:

We are almost ready to try and try to upload some code to the TinyConsole! We now need to select the correct Board and Port.

  • Plug the USB cable into the Arduino and connect it to your PC.
  • Turn on the TinyConsole using the power switch at the bottom.
  • Select the Arduino ATtiny85 board type

Tools > Board > ATiny85

  • Select the correct Port number
  • The Port number can be different for each computer
Tools > Port > COM# (Arduino)

Step 5:

Ok! Let’s select an example sketch to upload from the TinyConsole library. Most libraries include a few examples sketches that demonstrate the functions you are able to perform with it.

  • You may have to scroll down pretty far past the default libraries.

File > Examples > TinyConsole > Games

Upload the sketch using the upload button

Arduino will attempt to compile the code and transfer it to the TinyConsole over SPI. connection

If all goes well, the sketch will compile without errors and then be uploaded to your TinyConsole. After the upload completes, the sketch will run immediately. Hurray!

 

Let us know if you had success with uploading the code or if you need some assistance. 

[email protected]