Hello,
I installed PlatformIO, Github.
I am able to build espeasy, so the development enviroment is up and running.
Now i'm looking for a good source on how to build a plugin.
i need some things.
use of i2c communication
the i2c chip needs te be setup on boot, how to do this.
only send data to the device not reciving anything.
so a tutorial from where a i can find out how to build one, where are all the parameters for in plugin_device_add ?
i hope you people can help me
Creating a Plugin
Moderators: grovkillen, Stuntteam, TD-er
Re: Creating a Plugin
You can try to change one existing module.
One of the more simple plugins using I2C is Plugin 007: ExtWiredAnalog
So copy the file and change all words with "007" in them into some unused plugin number.
Then compile and you have added a "new" plugin.
After that, start changing and hacking
One of the more simple plugins using I2C is Plugin 007: ExtWiredAnalog
So copy the file and change all words with "007" in them into some unused plugin number.
Then compile and you have added a "new" plugin.
After that, start changing and hacking
Re: Creating a Plugin
Hello,
there are some guidelines in the wiki:
https://letscontrolit.com/wiki/index.ph ... Guidelines
https://letscontrolit.com/wiki/index.ph ... evelopment
Honestly i don't know if these are outdated or still in use.
Anyways it's still a source of information.
Regards
Shardan
there are some guidelines in the wiki:
https://letscontrolit.com/wiki/index.ph ... Guidelines
https://letscontrolit.com/wiki/index.ph ... evelopment
Honestly i don't know if these are outdated or still in use.
Anyways it's still a source of information.
Regards
Shardan
Regards
Shardan
Shardan
Who is online
Users browsing this forum: No registered users and 11 guests