Yes, the default software libraries assume an Expansion Board, and
reserve those two pins for it.
One simple workaround is to use analog(16) to get analog(0), and
analog(17) to get analog(1).
Or, you can track down the library file and change the code. I think
it's in hb.c.
Fred
On Tue, May 26, 2009 at 7:51 PM, indiemnjacobs
<mike.jacobs@...> wrote:
> I have a new Handy Board and I am attempting to read an analog input for the
first time. I have a trivial infinite loop that reads an analog port value and
displays it.
>
> The problem is that each time the analog function is called, the HB beeps and
displays 'Port is in use by Expansion Board'. The only problem is that I have
no expansion board installed. The problem occurs only on ports 0 and 1. The
other ports report values of 252 or 253 with nothing attached to them.
>
> I have reloaded the IC 8 firmware with identical results.
>
> Any ideas? Are ports 0 and 1 reserved for the expansion board?
>
> Thanks,
> Mike
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
>