Module pwm

Source
Expand description

Integration tests for PWM peripheral

This module provides four integration tests:

§hello_pwm

This test sets up GPIOs 14 and 15 as PWM pins. GPIO 15 should be much brighter than 14.

§Running the test

First step is including the test module:

#[allow(dead_code)]
use rp2040::test;

Then create a test instance:

let pwm_test = test::pwm::new(peripherals);

Then run the test:

pwm_test.hello_pwm();

Structs§

PwmTest
Struct used to run integration tests

Functions§

new
Create a PwmTest to run tests