attiny85 analog pins wont work

i am trying to make a led light up when certain amount of volts go in to the attiny85 analog but i cant get it to work can some give me a example code for the attiny 85 analog pins

Hi

Please post the code you have tried and a drawing of how you are connecting your hardware.

Thanks

Ray

andy9879:
can some give me a example code for the attiny 85 analog pins

int n = analogRead(1);

fungus:

andy9879:
can some give me a example code for the attiny 85 analog pins

int n = analogRead(1);

That said, are you sure you have the right pin. I find the numbering a bit confusing on those guys.

andy9879:
i am trying to make a led light up when certain amount of volts go in to the attiny85 analog but i cant get it to work can some give me a example code for the attiny 85 analog pins

Sample code + more... Gut the WDT stuff and tri-color LEDs if you like...
http://www.hackster.io/rayburne/hot-yet

Ray