mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
FRM: update pod
git-svn-id: https://svn.fhem.de/fhem/trunk@4176 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f0b0655336
commit
d7de0318ed
@ -842,7 +842,10 @@ sub FRM_OWX_Discover ($) {
|
||||
<a href="#FRM_IN">FRM_IN</a> for digital input<br>
|
||||
<a href="#FRM_OUT">FRM_OUT</a> for digital out<br>
|
||||
<a href="#FRM_AD">FRM_AD</a> for analog input<br>
|
||||
<a href="#FRM_PWM">FRM_PWM</a> for analog (pulse_width_modulated) output<br>
|
||||
<a href="#FRM_PWM">FRM_PWM</a> for analog output (pulse_width_modulated)<br>
|
||||
<a href="#FRM_RGB">FRM_RGB</a> control multichannel/RGB-LEDs by pwm<br>
|
||||
<a href="#FRM_SERVO">FRM_SERVO</a> for pwm-controled servos as being used in modelmaking<br>
|
||||
<a href="#FRM_LCD">FRM_LCD</a> output text to LCD attached via I2C<br>
|
||||
<a href="#FRM_I2C">FRM_I2C</a> to read data from integrated circutes attached
|
||||
to Arduino supporting the <a href="http://en.wikipedia.org/wiki/I%C2%B2C">
|
||||
i2c-protocol</a>.<br><br>
|
||||
@ -850,9 +853,8 @@ sub FRM_OWX_Discover ($) {
|
||||
Each client stands for a Pin of the Arduino configured for a specific use
|
||||
(digital/analog in/out) or an integrated circuit connected to Arduino by i2c.<br><br>
|
||||
|
||||
Note: this module requires the <a href="https://github.com/amimoto/perl-firmata">Device::Firmata</a> module (perl-firmata).
|
||||
You can download it <a href="https://github.com/amimoto/perl-firmata/archive/master.zip">as a single zip</a> file from github.
|
||||
Copy 'lib/Device' (with all subdirectories) to e.g. FHEM directory (or other location within perl include path)<br><br>
|
||||
Note: this module is based on <a href="https://github.com/ntruchsess/perl-firmata">Device::Firmata</a> module (perl-firmata).
|
||||
perl-firmata is included in FHEM-distributions lib-directory. You can download the latest version <a href="https://github.com/amimoto/perl-firmata/archive/master.zip">as a single zip</a> file from github.<br><br>
|
||||
|
||||
Note: this module may require the Device::SerialPort or Win32::SerialPort
|
||||
module if you attach the device via USB and the OS sets strange default
|
||||
|
@ -292,42 +292,42 @@ FRM_RGB_Attr($$$$) {
|
||||
<b>Set</b><br>
|
||||
<ul>
|
||||
<code>set <name> on</code><br>
|
||||
sets the pulse-width of all configured pins to 100%</ul>
|
||||
sets the pulse-width of all configured pins to 100%</ul><br>
|
||||
<ul>
|
||||
<code>set <name> off</code><br>
|
||||
sets the pulse-width of all configured pins to 0%</ul>
|
||||
sets the pulse-width of all configured pins to 0%</ul><br>
|
||||
<ul>
|
||||
<code>set <name> toggle</code><br>
|
||||
toggles in between the last dimmed value, 0% and 100%. If no dimmed value was set before defaults to pulsewidth 50% on all channels</ul>
|
||||
toggles in between the last dimmed value, 0% and 100%. If no dimmed value was set before defaults to pulsewidth 50% on all channels</ul><br>
|
||||
<ul>
|
||||
<code>set <name> rgb <value></code><br>
|
||||
sets the pulse-width of all channels at once. Also sets the value toggle can switch to<br>
|
||||
Value is encoded as hex-string, 2-digigs per channel (e.g. FFFFFF for reguler rgb)</ul>
|
||||
Value is encoded as hex-string, 2-digigs per channel (e.g. FFFFFF for reguler rgb)</ul><br>
|
||||
<ul>
|
||||
<code>set <name> pct <value></code><br>
|
||||
dims all channels at once while leving the ratio in between the channels unaltered.<br>
|
||||
Range is 0-100 ('pct' stands for 'percent')</ul>
|
||||
Range is 0-100 ('pct' stands for 'percent')</ul><br>
|
||||
<ul>
|
||||
<code>set <name> dimUp</code><br>
|
||||
dims all channels up by 10%</ul>
|
||||
dims up by 10%</ul><br>
|
||||
<ul>
|
||||
<code>set <name> dimDown</code><br>
|
||||
dims all channels down by 10%</ul>
|
||||
dims down by 10%</ul><br>
|
||||
|
||||
<a name="FRM_RGBget"></a>
|
||||
<b>Get</b><br>
|
||||
<ul>
|
||||
<code>get <h;name> rgb</code><br>
|
||||
<code>get <name> rgb</code><br>
|
||||
returns the values set for all channels. Format is hex, 2 nybbles per channel.
|
||||
</ul>
|
||||
</ul><br>
|
||||
<ul>
|
||||
<code>get <h;name> RGB</code><br>
|
||||
<code>get <name> RGB</code><br>
|
||||
returns the values set for all channels in normalized format. Format is hex, 2 nybbles per channel.
|
||||
Values are scaled such that the channel with the highest value is set to FF. The real values are calculated
|
||||
by multipying each byte with the value of 'pct'.
|
||||
</ul>
|
||||
</ul><br>
|
||||
<ul>
|
||||
<code>get <h;name> pct</code><br>
|
||||
<code>get <name> pct</code><br>
|
||||
returns the value of the channel with the highest value scaled to the range of 0-100 (percent).
|
||||
</ul><br>
|
||||
<a name="FRM_RGBattr"></a>
|
||||
|
Loading…
Reference in New Issue
Block a user