SETUP THE ARDUINO IDE
If you use the Adafruit Trinket Pro, you need a specially prepared Arduino 1.6.x IDE. Follow the instructions on the following page to setup the Arduino IDE:
Setup Arduino 1.6.x IDE for Pro Trinket
After this setup, try to install and run the “Blink” example sketch. It will blink the red LED on the microcontroller board.
Next you have to enable C++11 features to build my code. Locate the file platform.txt
in your Arduino installation. Search for the line compiler.cpp.flags=...
and add -std=c++11
at the end of this line. The final line should look like this:
compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -std=c++11
DOWNLOAD THE SOFTWARE
Go to the following GITHub project page to the shown release.
On the project page click on the “Download Zip” link to download the software. Unpack the software to your Arduino project folder and open the .ino
file.
BUILD THE SOFTWARE
Click on “Verify” to build the software. If you installed all libraries and setup the IDE correctly it will build the sketch without errors.
UPLOAD THE SOFTWARE
Connect your TTL cable to the microcontroller, press the reset button on the microcontroller and click on “Upload” while the red LED is still flashing. The sketch should be uploaded and start on the microcontroller.