Skip to content

Commit d6486e8

Browse files
committed
tests hardware: Add machine_Counter.py.
This adds hardware tests for machine.Counter. It requires two jumper wires between two pairs of pins, outputs, and inputs. output1: Pin() -> input1: Pin() output2: Pin() -> input2: Pin() or output1: PWM() -> input1: Pin() output2: PWM() -> input2: Pin() machine.Pin and machine.PWM generates pulses and controls the direction of counting, and machine.Counter inputs both. machine.Timer generates a period for counting pulses. machine.Counter value and irq callback tests are performed. Signed-off-by: IhorNehrutsa <[email protected]>
1 parent bfb1bee commit d6486e8

File tree

1 file changed

+583
-0
lines changed

1 file changed

+583
-0
lines changed

0 commit comments

Comments
 (0)