SoftPWM-Frage

Harry
Moderator
Avatar
Gender:
Location: zwischen Augsburg und Ulm
Age: 59
Posts: 2089
Registered: 03 / 2003
Subject:

SoftPWM-Frage

 · 
Posted: 05.03.2011 - 13:57  ·  #1
Hallo@all,

ich hätte da mal eine Frage :D : Wenn ich beim SoftPWM eine Auflösung von SoftPWMres = 80; einrichte, sind das dann gesamt 80 Stufen inkl 0=aus oder sind das 0=aus + 80 Stufen ? Kann also z.B. SoftPWMarr maximal 79 oder 80 sein ?

gruss
Harry
Gunter
Administrator
Avatar
Gender:
Location: Frankfurt Main / Germany
Posts: 1697
Registered: 02 / 2003
Subject:

Re: SoftPWM-Frage

 · 
Posted: 05.03.2011 - 17:52  ·  #2
Hallo Harry,

sollte sich durch einen Blick in die SoftPWM Demo erklären:

SoftPWMres = 100; {PWM resolution is 100 points} // 10..254
...
SoftPWM1:= 0;
SoftPWM2:= 20;
SoftPWM3:= 30;
SoftPWM4:= 40;
SoftPWM5:= 50;
SoftPWM6:= 70;
SoftPWM7:= 80;
SoftPWM8:= 100;
// It is also possible to access the PWMs as an array
// with 8 channels the array is defined like:
// var SoftPWMarr : array[1..8] of byte;
SoftPWMarr[5]:= 45;


Gruß
Gunter
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   46   60 · Page-Gen-Time: 0.014754s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI