Jump to content

You're trying to read from ledPin which you have set to output. You should just keep some bool flag to tell whether or not the led it on.

Can u explain a little more, I'm an intermediate programmer, but very very new to microcontrollers

I can help with programming and hardware.

<Script>alert("This website is vulnerable to XSS");</Script>

Link to comment
https://linustechtips.com/topic/439376-attiny-85-light-switch/#findComment-5891088
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×