Files
allwpilib/wpilibc/src/main/python/semiwrap/PWM.yml
2025-11-07 23:09:21 -08:00

29 lines
650 B
YAML

extra_includes:
- wpi/util/sendable/SendableBuilder.hpp
- wpi/hardware/led/AddressableLED.hpp
- wpi/util/SmallString.hpp
classes:
wpi::PWM:
ignored_bases:
- 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);
});