Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New pin configurations & features to ATtiny package #18

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

scottdky
Copy link

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

@sudar
Copy link
Contributor

sudar commented Jun 15, 2013

Would be really nice if this gets merged into master.

Is there any specific reason for not merging this?

@damellis
Copy link
Owner

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.

@jipp
Copy link

jipp commented Mar 31, 2015

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.

@sumbasu
Copy link

sumbasu commented Apr 7, 2016

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

@bmcewen
Copy link

bmcewen commented Aug 25, 2016

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants