-
Notifications
You must be signed in to change notification settings - Fork 380
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
base: master
Are you sure you want to change the base?
Conversation
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 void setup() { pinMode(2, OUTPUT); void loop() { LDRValue = analogRead(LDR); delay(50);
{ digitalWrite(2, HIGH); }
{ digitalWrite(2, LOW); } } |
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. |
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. |
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.