-->
Page 4 of 8

Re: read33vdd function

PostPosted: Wed Apr 15, 2015 6:32 am
by AcmeUK
Hi Bygerardwr

That compiles OK. The problem I am having is with
Code: Select allvdd33 = readvdd33;

I keep getting invalid conversion errors.

I am sure that it is my inexperience of "the depths of C". I have "played" with Arduino code for a while now and Google is my friend when I get stuck. But this has got me baffled!

Re: read33vdd function

PostPosted: Wed Apr 15, 2015 6:36 am
by MeNoGeek
gerardwr wrote:result around 1750.

I've always read a value above 3000, either in Lua or in Arduino C, unless I have something wired to the ADC.

Re: read33vdd function

PostPosted: Wed Apr 15, 2015 6:39 am
by gerardwr
AcmeUK wrote:I keep getting invalid conversion errors.


This works, guess you forgot the () ?

Code: Select all int vdd33 = readvdd33();
 Serial.print("[SDK direct] Vdd33 : "); Serial.println(vdd33);

Re: read33vdd function

PostPosted: Wed Apr 15, 2015 6:45 am
by MeNoGeek
Gerard... Your code is better than your quote ;)