Hallo zusammen, bei mir instaliert ist die Arduino IDE Version 1.63 und ich bekomme es nicht gebacken, meinen Trinket 5Volt Version zu programmieren.
Beim Verifizieren des Sketches ist alles OK und auf dem Uno läuft der auch.
Nun wollte ich den auf das Trinket hochladen, doch nix geht, respektive Fehlermeldungen kommen.
Arduino: 1.6.3 (Windows 7), Platine: "Pro Trinket 5V/16MHz (USB)"
Der Sketch verwendet 2.796 Bytes (9%) des Programmspeicherplatzes. Das Maximum sind 28.672 Bytes.
Globale Variablen verwenden 38 Bytes des dynamischen Speichers.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cusbtiny -Uflash:w:C:\Users\JUMPER~1\AppData\Local\Temp\build7880810019020999749.tmp/AirCrownAndyTrinket.cpp.hex:i
avrdude: Version 6.0.1, compiled on Mar 30 2015 at 14:56:06
Copyright © 2000-2005 Brian Dean, [url=http://www.bdmicro.com/]http://www.bdmicro.com/[/url]
Copyright © 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : usb
Using Programmer : usbtiny
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)
avrdude done. Thank you.
Der gewählte serielle Port
existiert nicht oder die Platine ist nicht angeschlossen
Im Gerätemanager ist der Trinket erkannt unter libusb-win32-devices und als USBtiny Im IDe ist die Platine als ProTrinkte 5V 16MHz definiert und bei Programer als USBtinyISP
Nun also weis ich absolut nicht weiter und würde euch um Hilfe bitten um dem Problem auf die Schliche zu kommen.
Hier noch der Sketch:
#include <Adafruit_NeoPixel.h>
#define PIN 1
// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
// NEO_KHZ400 400 KHz (classic 'v1' (not v2) FLORA pixels, WS2811 drivers)
// NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products)
// NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2)
Adafruit_NeoPixel strip = Adafruit_NeoPixel(8, 1, NEO_GRB + NEO_KHZ800);
// IMPORTANT: To reduce NeoPixel burnout risk, add 1000 uF capacitor across
// pixel power leads, add 300 - 500 Ohm resistor on first pixel's data input
// and minimize distance between Arduino and first pixel. Avoid connecting
// on a live circuit...if you must, connect GND first.
void setup() {
strip.begin();
strip.show(); // Initialize all pixels to 'off'
#if defined (__AVR_ATtiny85__)
if (F_CPU == 16000000) clock_prescale_set(clock_div_1);
#endif
}
void loop() {
test();
test2();
}
void test() {
for (int i = 0; i < strip.numPixels(); i++) {
if (i % 2 == 0) {
strip.setPixelColor(i, strip.Color(255, 0, 0));
} else {
strip.setPixelColor(i, strip.Color(0, 0, 255));
}
strip.show();
delay(30);
}
for(uint16_t i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, strip.Color(0, 0, 0));
strip.show();
delay(30);
}
}
void test2() {
for (int i = strip.numPixels() - 1; i >= 0; i--) {
if (i % 2 == 0) {
strip.setPixelColor(i, strip.Color(255, 0, 0));
} else {
strip.setPixelColor(i, strip.Color(0, 0, 255));
}
strip.show();
delay(30);
}
for(int i = strip.numPixels() - 1; i >= 0; i--) {
strip.setPixelColor(i, strip.Color(0, 0, 0));
strip.show();
delay(30);
}
}