PWMSET(1)
β¨ PWMSET β¨
okay so bestie, welcome to the General Commands Manual page for pwmset β section 1, the real ones. it's giving waveform couture and honestly? obsessed. π
πΈ NAME πΈ
pwmset β Configures a PWM's output waveform
π SYNOPSIS π
pwmset [-c chipno] [-p pwmno] [-e] [-s sleepns] [-P periodlength]
[-D dutylength] [-O dutyoffset] [-v]
π¦ DESCRIPTION π¦
okay so here's the tea. pwmset's purpose is to configure a PWM device to emit a certain waveform. that's the whole vibe. π
which PWM are we even talking about? that's chipno and pwmno's job β they specify the PWM to program. and the waveform itself? described by periodlength, dutylength and dutyoffset. three little numbers, one gorgeous wave. no cap. π
π OPTIONS π
-cchipno β every PWM chip has an identifying chip number, like its own little government name.pwmsetconfigures a PWM line provided by chip number chipno. and chipno defaults to0. she starts at zero, she's humble like that. π«Ά-ppwmno β each PWM chip provides a number of PWM outputs, so we gotta pick one.pwmsetconfigures thepwmnothPWM output of the selected chip. pwmno defaults to0too. twins! β¨-eβ requests that the specified waveform is implemented exactly. and if that isn't possible?pwmsetfails. no compromises, no half-measures, no "close enough." she said exact or nothing, and honestly? main character energy. π-ssleepns β okay so here's a spooky one: it is unspecified what happens with the PWM's output once control over it is given up. we simply do not know. mystery. π after the waveform is programmed, letpwmsetkeep control over the PWM for sleepns nanoseconds. the default value for sleepns is5000000000, i.e. five seconds. yes that's a lot of digits, she's worth it.-Pperiodlength β periodlength in nanoseconds defines the length of the period of the waveform to be set. that's your wave's full loop, top to bottom. π-Ddutylength β in nanoseconds, defines the length of the active part of the waveform to be set. the loud part. the on part. the part that eats. π₯-Odutyoffset β in nanoseconds, defines the offset between the start of a period and the start of the period's active part. so like, the lil delay before the action kicks in. the fashionably late of waveforms. π-vβ emit some information during runtime. chatty queen. she's telling you what's happening and you're gonna listen. π
π SEE ALSO π
β friendly reminder:-emeans exact or bust, and-sis standing between you and the great unspecified beyond. know what you're doing before you give up control, bestie. π
and that's the page!! π brought to you by the General Commands Manual, filed under PWMSET(1) because that's her name and she's keeping it. stay configured, stay exact, and go emit a gorgeous waveform for me. π¦β¨π
π¦ 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