Chat here about code rewrites, mods, etc... with respect to the github project https://github.com/esp8266/Arduino

Moderator: igrr

User avatar
By AcmeUK
#14584 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!
User avatar
By MeNoGeek
#14585
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.
User avatar
By gerardwr
#14586
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);
Last edited by gerardwr on Wed Apr 15, 2015 6:47 am, edited 1 time in total.