Files
allwpilib/wpilibc/src/main/python/semiwrap/PWM.yml

29 lines
650 B
YAML
Raw Normal View History

extra_includes:
2025-11-07 19:56:21 -05:00
- wpi/util/sendable/SendableBuilder.hpp
- wpi/hardware/led/AddressableLED.hpp
- wpi/util/SmallString.hpp
classes:
2025-11-07 20:00:05 -05:00
wpi::PWM:
ignored_bases:
2025-11-07 20:00:05 -05:00
- wpi::util::SendableHelper<PWM>
enums:
OutputPeriod:
methods:
PWM:
SetPulseTime:
GetPulseTime:
SetDisabled:
GetChannel:
InitSendable:
SetOutputPeriod:
SetSimDevice:
inline_code: |
cls_PWM
.def("__repr__", [](py::handle self) {
py::object type_name = self.get_type().attr("__qualname__");
int channel = self.cast<PWM&>().GetChannel();
return py::str("<{} {}>").format(type_name, channel);
});