YaK:: AVR Code -- ATtiny85 [Changes]   [Calendar]   [Search]   [Index]   [PhotoTags]   
[mega_changes]
[photos]

AVR Code -- ATtiny85


Pin1: PB5/Reset (no connection)
Pin2: PB3 (LED I to +V via resistor)
Pin3: PB4 (LED U to +V via resistor)
Pin4: Ground
Pin5: PB0 (LED M to +V via resistor) (on red card, Yellow LED to GND)
Pin6: PB1 (no connection)
Pin7: PB2/INT0 (momentary pushbutton SWITCH to Ground)
Pin8: +V (3 to 5 volts)

http://www.onlybatteries.com/showitem.asp?ItemID=17706.12&cat1=79&uid=1940 ( 100 x CR2430-P2-2 COMP-1-2VL 3 Volt lithium coin cell batteries, 2 pin vertical ) Chemistry: Lithium Voltage: 3V Dimensions: 24 mm x 3 mm Capacity: 270 mAh Brand: Sanyo Connector: 2 Pin Vertical PC Mount Qty: 100

tiny_in0_jt234_p1

//#include "tinyserial.h"

int S = 1;  // Switch.
int M = 2;  // Led M.
int I = 3;  // Led I.
int U = 4;  // Led U.
int count;
int r;
int t;
void setup() {
  // initialize the digital pin as an output.
  pinMode(0, INPUT);
  pinMode(S, INPUT_PULLUP);
  pinMode(M, OUTPUT);
  pinMode(I, OUTPUT);
  pinMode(U, OUTPUT);
  //Serial.begin(9600);
  //Serial.println("Hello World");
}
void loop() {
  ++count;
  //Serial.write('0' + (count&7));
  r = digitalRead(S);
  if (/*r==LOW ||*/ count&1) {
    digitalWrite(M, (r==LOW || count&2) ? HIGH : LOW);
    digitalWrite(I, (r==LOW || count&4) ? HIGH : LOW);
    digitalWrite(U, (r==LOW || count&8) ? HIGH : LOW);
  } else {
    digitalWrite(M, LOW);
    digitalWrite(I, LOW);
    digitalWrite(U, LOW);
  }
  delay(300);
}

Binary sketch size: 920 bytes (of a 8,192 byte maximum)

C:\Program Files (x86)\Arduino\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -pattiny85 -cusbtiny -Uflash:w:C:\Users\central\AppData\Local\Temp\build2712862910057712409.tmp\tiny_4count_0_2_3_4.cpp.hex:i

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\tiny_in0_out234_p1.cpp -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\tiny_in0_out234_p1.cpp.o
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Stream.h:26,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:28,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Arduino.h:193,
                 from tiny_in0_out234_p1.ino:3:
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Print.h:32:1: warning: "BIN" redefined
In file included from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotn85.h:38,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h:284,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:82,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Arduino.h:8,
                 from tiny_in0_out234_p1.ino:3:
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotnx5.h:55:1: warning: this is the location of the previous definition
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\avr-libc\malloc.c -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\malloc.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\avr-libc\realloc.c -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\realloc.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\WInterrupts.c -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\WInterrupts.c.o
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\WInterrupts.c:134:8: warning: #warning attachInterrupt may need some more work for this cpu (case 1)
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\WInterrupts.c:223:8: warning: #warning detachInterrupt may need some more work for this cpu (case 1)
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\WInterrupts.c:314: warning: 'INT1_vect' appears to be a misspelled signal handler
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\wiring.c -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\wiring.c.o
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\wiring.c:255:3: warning: #warning this needs to be finished
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\wiring.c:264:3: warning: #warning Timer 2 not finished (may not be present on this CPU)
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\wiring.c:273:3: warning: #warning Timer 2 not finished (may not be present on this CPU)
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\wiring_analog.c -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\wiring_analog.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\wiring_digital.c -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\wiring_digital.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\wiring_pulse.c -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\wiring_pulse.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\wiring_shift.c -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\wiring_shift.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\CDC.cpp -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\CDC.cpp.o
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Stream.h:26,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/HardwareSerial.h:28,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Arduino.h:193,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Platform.h:15,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\CDC.cpp:19:
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Print.h:32:1: warning: "BIN" redefined
In file included from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotn85.h:38,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h:284,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:82,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Platform.h:6,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\CDC.cpp:19:
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotnx5.h:55:1: warning: this is the location of the previous definition
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\HardwareSerial.cpp.o
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Stream.h:26,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/HardwareSerial.h:28,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Arduino.h:193,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp:28:
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Print.h:32:1: warning: "BIN" redefined
In file included from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotn85.h:38,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h:284,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:82,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Arduino.h:8,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HardwareSerial.cpp:28:
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotnx5.h:55:1: warning: this is the location of the previous definition
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HID.cpp -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\HID.cpp.o
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Stream.h:26,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/HardwareSerial.h:28,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Arduino.h:193,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Platform.h:15,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HID.cpp:19:
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Print.h:32:1: warning: "BIN" redefined
In file included from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotn85.h:38,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h:284,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:82,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Platform.h:6,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\HID.cpp:19:
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotnx5.h:55:1: warning: this is the location of the previous definition
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\IPAddress.cpp -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\IPAddress.cpp.o
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Stream.h:26,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:28,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Arduino.h:193,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\IPAddress.cpp:2:
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Print.h:32:1: warning: "BIN" redefined
In file included from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotn85.h:38,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h:284,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:82,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Arduino.h:8,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\IPAddress.cpp:2:
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotnx5.h:55:1: warning: this is the location of the previous definition
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\main.cpp -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\main.cpp.o
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Stream.h:26,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/HardwareSerial.h:28,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Arduino.h:193,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\main.cpp:1:
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Print.h:32:1: warning: "BIN" redefined
In file included from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotn85.h:38,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h:284,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:82,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/Arduino.h:8,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\main.cpp:1:
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotnx5.h:55:1: warning: this is the location of the previous definition
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\new.cpp -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\new.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Print.cpp -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\Print.cpp.o
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Stream.h:26,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/HardwareSerial.h:28,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Arduino.h:193,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Print.cpp:26:
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Print.h:32:1: warning: "BIN" redefined
In file included from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotn85.h:38,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h:284,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:82,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Arduino.h:8,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Print.cpp:26:
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotnx5.h:55:1: warning: this is the location of the previous definition
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Print.cpp: In member function 'size_t Print::print(const __FlashStringHelper*)':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Print.cpp:44: warning: '__progmem__' attribute ignored
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Stream.cpp -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\Stream.cpp.o
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Stream.h:26,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/HardwareSerial.h:28,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Arduino.h:193,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Stream.cpp:23:
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Print.h:32:1: warning: "BIN" redefined
In file included from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotn85.h:38,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h:284,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:82,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Arduino.h:8,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Stream.cpp:23:
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotnx5.h:55:1: warning: this is the location of the previous definition
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Tone.cpp -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\Tone.cpp.o
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Stream.h:26,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/HardwareSerial.h:28,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Arduino.h:193,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Tone.cpp:37:
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Print.h:32:1: warning: "BIN" redefined
In file included from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotn85.h:38,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h:284,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/interrupt.h:38,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Tone.cpp:35:
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotnx5.h:55:1: warning: this is the location of the previous definition
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Tone.cpp:119: warning: only initialized variables can be placed into program memory area
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\Tone.cpp:535: warning: 'TIMER2_COMPA_vect' appears to be a misspelled signal handler
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\USBCore.cpp -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\USBCore.cpp.o
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Stream.h:26,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/HardwareSerial.h:28,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Arduino.h:193,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Platform.h:15,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\USBCore.cpp:19:
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Print.h:32:1: warning: "BIN" redefined
In file included from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotn85.h:38,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/io.h:284,
                 from c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:82,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\/Platform.h:6,
                 from C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\USBCore.cpp:19:
c:/program files (x86)/arduino/hardware/tools/avr/lib/gcc/../../avr/include/avr/iotnx5.h:55:1: warning: this is the location of the previous definition
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\WMath.cpp -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\WMath.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny85 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -IC:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino -IC:\Users\central\Documents\Arduino\hardware\attiny\variants\tiny8 C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino\WString.cpp -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\WString.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\malloc.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\realloc.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\WInterrupts.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\wiring.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\wiring_analog.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\wiring_digital.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\wiring_pulse.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\wiring_shift.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\CDC.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\HardwareSerial.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\HID.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\IPAddress.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\main.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\new.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\Print.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\Stream.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\Tone.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\USBCore.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\WMath.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-ar rcs C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\WString.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -Os -Wl,--gc-sections -mmcu=attiny85 -o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\tiny_in0_out234_p1.cpp.elf C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\tiny_in0_out234_p1.cpp.o C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\core.a -LC:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp -lm
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\tiny_in0_out234_p1.cpp.elf C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\tiny_in0_out234_p1.cpp.eep
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-objcopy -O ihex -R .eeprom C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\tiny_in0_out234_p1.cpp.elf C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\tiny_in0_out234_p1.cpp.hex
Binary sketch size: 1,132 bytes (of a 8,192 byte maximum)
C:\Program Files (x86)\Arduino\hardware/tools/avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -pattiny85 -cusbtiny -Uflash:w:C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\tiny_in0_out234_p1.cpp.hex:i

avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : lpt1
         Using Programmer              : usbtiny
         AVR Part                      : ATtiny85
avrdude: usbdev_open(): Found USBtinyISP, bus:device: bus-0:\\.\libusb0-0001--0x1781-0x0c9f
         Chip Erase delay              : 4500 us
         PAGEL                         : P00
         BS2                           : P00
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65     6     4    0 no        512    4      0  4000  4500 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65     6    32    0 yes      8192   64    128  4500  4500 0xff 0xff
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration    0     0     0    0 no          2    0      0     0     0 0x00 0x00

         Programmer Type : USBtiny
         Description     : USBtiny simple USB programmer, http://www.ladyada.net/make/usbtinyisp/
avrdude: programmer operation not supported

avrdude: Using SCK period of 10 usec
CMD: [ac 53 00 00] [ff fe 53 00]
avrdude: AVR device initialized and ready to accept instructions

Reading | CMD: [30 00 00 00] [00 30 00 1e]
CMD: [30 00 01 00] [00 30 00 93]
################CMD: [30 00 02 00] [00 30 00 0b]
################################## | 100% 0.01s

avrdude: Device signature = 0x1e930b
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
CMD: [a0 01 fc 00] [00 a0 01 ff]
CMD: [a0 01 fd 00] [00 a0 01 ff]
CMD: [a0 01 fe 00] [00 a0 01 ff]
CMD: [a0 01 ff 00] [00 a0 01 ff]
avrdude: erasing chip
CMD: [ac 80 00 00] [00 ac 80 00]
avrdude: Using SCK period of 10 usec
CMD: [ac 53 00 00] [00 ac 53 00]
avrdude: reading input file "C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\tiny_in0_out234_p1.cpp.hex"
avrdude: writing flash (1132 bytes):

Writing | CMD: [4c 00 00 00] [20 4c 00 00]
##CMD: [4c 00 20 00] [f7 4c 00 20]
###CMD: [4c 00 40 00] [95 4c 00 40]
###CMD: [4c 00 60 00] [00 4c 00 60]
###CMD: [4c 00 80 00] [e0 4c 00 80]
###CMD: [4c 00 a0 00] [93 4c 00 a0]
##CMD: [4c 00 c0 00] [93 4c 00 c0]
###CMD: [4c 00 e0 00] [91 4c 00 e0]
###CMD: [4c 01 00 00] [1d 4c 01 00]
###CMD: [4c 01 20 00] [c0 4c 01 20]
###CMD: [4c 01 40 00] [4f 4c 01 40]
###CMD: [4c 01 60 00] [93 4c 01 60]
##CMD: [4c 01 80 00] [2f 4c 01 80]
###CMD: [4c 01 a0 00] [01 4c 01 a0]
###CMD: [4c 01 c0 00] [1f 4c 01 c0]
###CMD: [4c 01 e0 00] [01 4c 01 e0]
###CMD: [4c 02 00 00] [23 4c 02 00]
###CMD: [4c 02 20 00] [00 4c 02 20]
## | 100% 0.87s

avrdude: 1132 bytes of flash written
avrdude: verifying flash memory against C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\tiny_in0_out234_p1.cpp.hex:
avrdude: load data flash data from input file C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\tiny_in0_out234_p1.cpp.hex:
avrdude: input file C:\Users\central\AppData\Local\Temp\build3293596978957082662.tmp\tiny_in0_out234_p1.cpp.hex contains 1132 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.52s

avrdude: verifying ...
avrdude: 1132 bytes of flash verified

avrdude done.  Thank you.
  • mu001.ino.2
  • mu001.ino.4
  • mu001.ino.6
  • mu001.ino.7
  • mu003.ino.1
  • mu003.ino.2
  • mu003.ino.3
  • mu003.ino.9.bfrunmaybe
  • proj4a.tgz

  • mu003.ino.15
  • mu003.ino.16.bfgood
  • proj51.tgz
  • proj60.tgz
  • mu004.ino.14.right-bananas
  • proj76.tgz
  • 2018-09-15: Having problems with the Arduino GUI.  Hints:
    
    # echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="1781", ATTR{idProduct}=="0c9f", MODE="0666", GROUP="plugdev"' > /etc/udev/rules.d/99-trinket.rules
    
    $ avrdude -c usbtiny -p m8  -F -U Arduino/strickBlinkWithout/strickBlinkWithout.ino.tiny8.hex
    

    Internal Reference Voltage

    https://forum.arduino.cc/index.php?topic=139958.0

    Re: analogReference on ATTiny85
    #5
    Dec 31, 2012, 03:11 pm
    I saw that in the wiring.h file but I still have trouble reading those.
    Would this be the way to set the internal 2.56v aaref without the decoupling cap?
    "analogReference(INTERNAL2V56 (6));"
    Thanks again
    TomJ
    
  • (unless otherwise marked) Copyright 2002-2014 YakPeople. All rights reserved.
    (last modified 2021-01-05)       [Login]
    (No back references.)