Hey,
Sorry this is my first work on the Code and I have a "little" Question
I work for the "Init" Problem for the PCA9685
https://github.com/letscontrolit/ESPEasy/issues/651
viewtopic.php?f=5&t=851&p=4466&hilit=PCA9685#p4454
1) I must expand the WebFrontend -> No Problem
2) there must be 2 Boolean for Driver and Invert -> No Problem
3) For Future Expand this will be Store in a byte (mode2) -> No Problem
4) When you Submit the WebFrontend, it must be save (in PLUGIN_WEBFORM_SAVE?), but how?
5) In the INIT Prozedure the mode2 must be use for the Init (in the Theorie no Problem)
My Problem is 4), how do I save? I try to look in other Files, but ... I don't find how ....
and Hov it could be init with the default, wehnn it it open for the first time / deklariation of the Device?
Cloud somebody give me a little help?
Mercy ... and sorry about my english ...
Greeting,
Werner
(solved) Store Variable for Hardware
Moderators: grovkillen, Stuntteam, TD-er
(solved) Store Variable for Hardware
Last edited by wernieman on 24 Oct 2018, 18:07, edited 1 time in total.
Re: Store Variable for Hardware
Hey,
I think about my question and it would better to ask:
How is the best way in ESPEasy, to safe a Variable for a Device...
Greeting,
Werner
I think about my question and it would better to ask:
How is the best way in ESPEasy, to safe a Variable for a Device...
Greeting,
Werner
Re: Store Variable for Hardware
Isn't this just about the same as is being done in this Pull request : https://github.com/letscontrolit/ESPEasy/pull/1944
I still have to look at that one, but it may be merged in 1 or 2 days.
I still have to look at that one, but it may be merged in 1 or 2 days.
Re: Store Variable for Hardware
Yes ...I try it, because:
- I want to solve it (for me)
- and I want to learn, how espeasy work (intent).
Today I solve my Problem ....
I have:
- 2 Check box on the WebBox
- Save it in a Variable for the Init-Routine
At the Moment I have the Problems:
- how to rerun the INIT-Routine, when you change it
- When you define the Device, how to set the default. At the Moment the Variable is 0 ....
But I think, your Code would be better than my ... if you would, I could give you a diff ...
- I want to solve it (for me)
- and I want to learn, how espeasy work (intent).
Today I solve my Problem ....
I have:
- 2 Check box on the WebBox
- Save it in a Variable for the Init-Routine
At the Moment I have the Problems:
- how to rerun the INIT-Routine, when you change it
- When you define the Device, how to set the default. At the Moment the Variable is 0 ....
But I think, your Code would be better than my ... if you would, I could give you a diff ...
Re: (solved) Store Variable for Hardware
I make a patch from my last Version and put it to github ....
Who is online
Users browsing this forum: No registered users and 12 guests