[En-Nut-Discussion]Problem with ADC
Ole Reinhardt
ole.reinhardt at kernelconcepts.de
Mon May 29 23:26:03 CEST 2006
Hi,
> vadc=adc_value*5/1024;
> printf("%f\n", vadc);
> //n=NutUdpSendTo(sock,inet_addr("255.255.255.255"), port,
> str, sizeof(str));
>
> }
> the resullt is f if don't connect anything to the channel.
You probably don't have compiled your libnutcrt with floating point
support? In this case you won't get any result using "%f" in the printf.
You need to link to libnutcrtf, which unfortionaly won't be build by
default. You have to configure it using the configurator.
Best regards,
Ole Reinhardt
--
kernel concepts Tel: +49-271-771091-14
Dreisbachstr. 24 Fax: +49-271-771091-19
D-57250 Netphen E+ : +49-177-7420433
--
More information about the En-Nut-Discussion
mailing list