Refer to the website for all the documentation and files
- Install the Arduino IDE
- Install Adafruit windows drivers(if applicable)
- Add repository
- file –> preferences
- in “additional board managers”, type “https://adafruit.github.io/arduino-board-index/package_adafruit_index.json"
- Add adafruit boards manager
- tools –> board –> board manager…
- search for adafruit, select, and install.
USB Bootloader Settings
- Plug in USB Bootloader
- Select Board:
- ProTrinket5V/16MHz(USB)
- Select Programmer:
- USBTinyISP
- upload
USB/Serial Cable Settings
- Plug in USB/Serial Cable to the six pins at the end of the adafruit pro trinket
- If necessary, install ftdi drivers
- Select Board:
- ProTrinket5V/16MHz(FTDI)
- Select Port (use device manager to identify)
- Select Programmer:
- AVR ISP
- upload
Working with serial
Serial Echo
void setup() {
Serial.begin(9600);
}
void loop() {
if (Serial.available()) { // If anything comes in Serial (USB),
Serial.read();
Serial.write("x"); // read it and send it out Serial1 (pins 0 & 1)
}
}