PWMROUND(1)
π PWMROUND β ok bestie, let's talk waveform glow-ups π
so this is pwmround from the General Commands Manual (section 1, we're fancy). Sit down, grab a boba, we're about to make your PWM tell the truth for once. β¨
πΈ NAME πΈ
pwmround β adapt a waveform to a PWM's actual capabilities. like, your dream waveform vs. what the hardware will actually give you. the vibe check, but for duty cycles. π
β¨ SYNOPSIS β¨
pwmround [-c chipno] [-p pwmno] [-P periodlength] [-D dutylength]
[-O dutyoffset] [-v]
π¦ DESCRIPTION π¦
okay so here's the tea: typically a PWM cannot implement each and every waveform. periodt. you ask for something gorgeous, the chip goes "bestieβ¦ no." π
pwmround queries the PWM output specified by chipno and pwmno to find out what the waveform will be actually implemented for a given request. not what you asked for β what you're getting. reality check, but cute. π₯
The waveform to be adapted is described by periodlength, dutylength and dutyoffset. those three are the whole plot. π
π OPTIONS π
-cchipnoβ every PWM chip has an identifying chip number.pwmsetconfigures a PWM line provided by chip numberchipno.chipnodefaults to0. so if you're like "which chip", it's chip0, don't overthink it. π-ppwmnoβ each PWM chip provides a number of PWM outputs.pwmsetconfigures thepwmnoth PWM output of the selected chip.pwmnodefaults to0. first output, main character energy, no cap. π-Pperiodlengthβperiodlengthin nanoseconds defines the length of the period of the waveform to be adapted to the PWM's capabilities. this is the whole cycle, start to start. β-Ddutylengthβ in nanoseconds, defines the length of the active part of the waveform to be adapted to the PWM's capabilities. the "on" part. the moment. the slay section. π-Odutyoffsetβ in nanoseconds, defines the offset between the start of a period and the start of the period's active part. basically how late the active part shows up to the party. π-vβ emit some information during runtime. she talks while she works. π£οΈ
heads up bestie:periodlength,dutylengthanddutyoffsetare all in nanoseconds. nanos. tiny. respect them. β±οΈ
π SEE ALSO π
go read those too, iykyk. π
and that's the whole page, bestie π«Ά this was PWMROUND(1) from the General Commands Manual β go forth and round your waveforms, you absolute icon. ππ
π¦ where this page comes from
- ubuntu questing: libpwm-tools 1.0~rc2-1
- ubuntu resolute: libpwm-tools 1.0~rc2-1build1
- ubuntu stonking: libpwm-tools 1.0~rc2-1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms