Tell me what you want, What you really, really want.

Moderator: Mmiscool

User avatar
By flyboy74
#72179 Is it possible to be able to import libraries. Something like the C include or the python import.

I am after this so that I can write libraries that r useful for my sons programming and he can import them into his programs. I can also share then with the community too.

I see that ESP Basic has full support for I2C, SPI and serial, this means I can write driver for many sensors.
User avatar
By Oldbod
#72296 Esp8266basic is an application-based interpreter, so it's not really practical to do on-the-fly library additions of the type I think you mean as new libraries are implemented by linking them into a new executable after also modifying the basic source application, which then has to be flashed to the esp8266.

What are the limitations that you'd be looking to overcome in eg i2c) that basic can't support with the existing commands?
User avatar
By flyboy74
#72376 Basically to be able to write useful sub routines like setup and a read an I2C sensor then save the sub routine that can be imported into any other program rather than having to cut and paste the sub routine.

This will make sharing reusing sub routines easier and sharing them with community easier too.