Add ATtiny support
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.
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);
}
}
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.
So Im supposed to copy that library into mine. But none of those sketches relate to what I want.sorry im new to this.
I had my blink sketch uploaded to the attiny and it worked fine but when I when up hook up my ldr through the attiny it doesn’t work. I must be wiring it wrong or not putting the input pin correctly in the upload maybe?
From: Kevin Sidwar [email protected] Reply-To: LowPowerLab/RFM69 [email protected] Date: Monday, February 26, 2018 at 3:17 PM To: LowPowerLab/RFM69 [email protected] Cc: Jeremy Feliciano [email protected], Comment [email protected] Subject: Re: [LowPowerLab/RFM69] Add ATtiny support (#79)
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-supporthttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sidwarkd_RFM69_tree_attiny-2Dsupport&d=DwMFaQ&c=5oszCido4egZ9x-32Pvn-g&r=7Ym1R9TLbJKrT4ugFOxLCY1xN_OSK0Its3LmdRcqYaY&m=yAnGOO5whMgLEHLCYlT8b1B9Kyov2ny18sHymyGp2ZA&s=QQeAEvrElBIWazkwYSxYNG0RgBWQyQeco1cVlyg1ZpA&e=. I'd be interested to know if it works for you.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_LowPowerLab_RFM69_pull_79-23issuecomment-2D368635605&d=DwMFaQ&c=5oszCido4egZ9x-32Pvn-g&r=7Ym1R9TLbJKrT4ugFOxLCY1xN_OSK0Its3LmdRcqYaY&m=yAnGOO5whMgLEHLCYlT8b1B9Kyov2ny18sHymyGp2ZA&s=Qd3gjwxoi8FOQrsflE7uo09uJYtwmtedt4B177Q1_WI&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AjARmev3KOqCLFM-2D8ohSQaw1UWIhudxEks5tYxFJgaJpZM4PDXG1&d=DwMFaQ&c=5oszCido4egZ9x-32Pvn-g&r=7Ym1R9TLbJKrT4ugFOxLCY1xN_OSK0Its3LmdRcqYaY&m=yAnGOO5whMgLEHLCYlT8b1B9Kyov2ny18sHymyGp2ZA&s=VbtnxL6TcSR2Wr8zRC4WCURLeq9XSzu905qPlHZROQo&e=.
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.