Creating a Plugin

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
arnoldg
Normal user
Posts: 14
Joined: 29 Aug 2017, 07:02

Creating a Plugin

#1 Post by arnoldg » 13 Dec 2017, 21:27

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

TD-er
Core team member
Posts: 8761
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Creating a Plugin

#2 Post by TD-er » 13 Dec 2017, 22:03

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 :)

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Creating a Plugin

#3 Post by Shardan » 13 Dec 2017, 22:37

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
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests