pvvx wrote:alonewolfx2 wrote:which sdk you are using ?0.9.4Fr4gg0r wrote: Or maybe it works better with the SDK released today.
Yes! better with the SDK released today:
disasm:
C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-objdump -S %1.a >%1.asm
extract lib to obj:
C:\Espressif\xtensa-lx106-elf\bin\xtensa-lx106-elf-ar x libphy.a
Disasm ROM: http://df.lth.se/~kongo/esp8266.bin
Unfortunately my code crashes the esp most of the times. When it doesn't, the returned numbers vary greatly.
static int adc_read_vdd( lua_State* L )
{
unsigned val = readvdd33();
//refine this
unsigned mV = val*1000/647 + 854;
lua_pushinteger( L, mV );
return 1;
}