code form arduino uno to attiny45

Hi All

are there problems between unor3 and tiny45. Code is approx 2kb

2 analog in with 3 led outputs

Sandy

Huh ?

You know…unore and tinyas.

Isn’t that the “leetspeak” translation?

Yes it is strange.

In the define setup if a2(TINY 45) is referenced before a3, a3 function works great and vice versa

A2 and a3 have different functions in the code

Have been pulling hair to understand.

All works great on the uno. R3? Have also tried programming with a Sparkfun programmer. I get

The same results. I dont want to use the 328 because of cost.

Any kind of help would be great. sandy

sandyct:
Yes it is strange.

No...

What was and is still strange is the way you worded you question.

This will help…

http://bit.ly/1fOBGa9

sandyct:
A2 and a3 have different functions in the code

Of course they are different. C++ is case sensitive.

Hi ALL

Sorry i was vague. The code finally WORKS PERFECT? On the original snippet the port was addressed as follows:

I had to find the solution, andit came at about 11:45 last night. celebrated with a cup of coffee.

0 analog port

1 analog port

This works fine for the UNO

As the code was less than 4k i built a simple programmer. The code compiled but would not work properly. As the cpu was regarding those inputs “AS DIGITAL” of fcourse it would not work. I inserted the capital A0 and capital A1. Code works great.i

I have contacted the originator and passed this info to him. Now he wants toplay with the tiny45,85 etc.

Cant edit on these tablets that easy.

Problem solved

THANKS

sandy

I inserted the capital A0 and capital A1. Code works great

Your welcome