Learning to Program the TinyConsole!
This guide will teach you how to setup your computer to upload software and games to your TinyConsole.
we can reprogram the TinyConsole, and change the game on it, using a SOIC 8 Pin Programer Clamp cable and some software called Arduino.
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…
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
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
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