attiny icon indicating copy to clipboard operation
attiny copied to clipboard

New pin configurations & features to ATtiny package

Open scottdky opened this issue 12 years ago • 5 comments

I have added the following features that would be useful to integrate into your main repo:

  1. I have added support for 20 pin ATtiny chips. Specifically:

ATtiny87/167 ATtiny2313/4313 ATtiny261/461/861

  1. I have also added the ATtiny13 to boards.txt.

  2. Added SPI & I2C support to all the pinout files

  3. Added readme file to provide guidance on installing and using.

Please consider merging these changes as you are able.

Thanks, Scott Daniels

scottdky avatar Feb 11 '13 07:02 scottdky

Would be really nice if this gets merged into master.

Is there any specific reason for not merging this?

sudar avatar Jun 15 '13 14:06 sudar

I've been trying to keep the set of supported chips small, especially since they take up so much room in the boards menu. This probably makes more sense for the 1.5.x branch, where the processor selection happens in a secondary menu and so is much more manageable. Or as a separate download for these additional chips.

damellis avatar Jun 15 '13 18:06 damellis

inside the files: attiny/variants/tiny20x13/pins_arduino.h attiny/variants/tiny20x61/pins_arduino.h attiny/variants/tiny20x7/pins_arduino.h attiny/variants/tiny20x13/pins_arduino_mine.h

there is a typo: const (int16_t PROGMEM port_to_output_PGM[] =

should be: const uint16_t PROGMEM port_to_output_PGM[] =

I would like to test it for the ATtiny861 but get the following error message:

In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Tone.cpp:37:0: /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Tone.cpp: In function 'int8_t toneBegin(uint8_t)': /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Tone.cpp:159:26: error: 'WGM01' was not declared in this scope bitWrite(TCCR0A, WGM01, 1); ^ /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:104:49: note: in definition of macro 'bitSet' #define bitSet(value, bit) ((value) |= (1UL << (bit))) ^ /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Tone.cpp:159:9: note: in expansion of macro 'bitWrite' bitWrite(TCCR0A, WGM01, 1); ^ Fehler beim Kompilieren.

jipp avatar Mar 31 '15 21:03 jipp

Hi,

Has this library been tested against Attiny x61 MCU? In my recent project I am going to use AtTiny 861, Can I use this repository?

Regards Sumanta

sumbasu avatar Apr 07 '16 12:04 sumbasu

It would be great to have a one-stop shop for as many ATTiny chips as possible, this seems to be a hurdle for many getting going with these projects. The 1.6.5+ IDE handles the menus pretty nicely even if there are many items listed.

For the ATTiny13, this post has content specific to adding the ATTiny13A: http://www.instructables.com/id/Programming-an-ATTiny13A-using-Arduino-servo-int/

as does this: http://elabz.com/arduino-shrunk-how-to-use-attiny13-with-arduino-ide/

If someone who knows what they are doing takes a look at these links- there are multiple, recent posts indicating success for the board definition. I would try to send up just the content that you would need to merge but I have every confidence that my stab at it would end up in more work for the maintainers.

Thank you for maintaining this convenient repo for things ATTiny and Arduino!

bmcewen avatar Aug 25 '16 16:08 bmcewen