Re: Temporary central repository of Darrel Taylor's works (including Mr E's Multicalc
by
Published on - 3rd January 2015 13:34
Here is my version of Darrels 10bit HPWM_L. Original version works with PBPW. There is comments in code, what is changed. Later Darrel publise his version on me labs forum.
Example:
Code:
include "HPWM_L.pbp"
DutyCycle1 VAR WORD
DutyCycle2 VAR WORD
Frequency VAR WORD
@ HPWM10 1, _DutyCycle1, _Frequency
@ HPWM10 1, _DutyCycle2, _Frequency
Frequency must be same for all channels.
HPWM10_L.zip
EDIT:
Here is archive with original code and example:
HPWM10.zip
I can't find S_PWM
Re: How to measure how long I pressed a button ?
What happens if more than one button is pressed at the same time?
HenrikOlsson Today, 17:16Anyway, this might serve as starting point. It compiles but it is not tested.
Long_Press CON 5000
Short_Press con 100
cnt...