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

Add ATtiny support #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

sidwarkd
Copy link

This PR adds support for the ATtiny85 chip found in the Adafruit Trinket. Because the ATtiny does not support the standard serial library a new define was added to exclude serial debug logging only when compiling for the ATtiny85.

@JMAN2018
Copy link

HI GUYS. I HAVE A LDR light sensor I would like to use to turn on a light bulb through a attin85. when I upload the sketch to the Arduino it works fine. but when I upload to the attiny, I can't get it to work. am I'm wiring it wrong? when I put my signal from my ldr sensor to AO and 2 to the led it works on Arduino, but when I do that with the Attiny85 it doesn't do anything. The sketch did upload correctly though so it has to be me wiring it wrong or I need to change the code maybe to cater to the attiny85?

my sketch is
int LDR = 0;
int LDRValue = 0;

void setup()

{

pinMode(2, OUTPUT);

void loop()

{

LDRValue = analogRead(LDR);

delay(50);

  if (LDRValue < light_sensitivity)        

{

digitalWrite(2, HIGH);

}

else       

{

digitalWrite(2, LOW);

}

}

@sidwarkd
Copy link
Author

Hey JMAN, did you try using the code changes I posted in this PR. The ATTiny definitely isn't supported in the normal release of the library which is what this PR I submitted was trying to address. You can pull the entire branch from https://github.com/sidwarkd/RFM69/tree/attiny-support. I'd be interested to know if it works for you.

@JMAN2018
Copy link

JMAN2018 commented Feb 26, 2018 via email

@sidwarkd
Copy link
Author

Shoot me an email (look in my profile for it) and I can give you instructions. Once we get you that far to see if it works I'll post them back here on the pull request thread.

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.

2 participants