PWMSET(1)

πŸ“¦ version 1.0~rc2, in ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 πŸ’–

  • -c chipno β€” every PWM chip has an identifying chip number, like its own little government name. pwmset configures a PWM line provided by chip number chipno. and chipno defaults to 0. she starts at zero, she's humble like that. 🫢
  • -p pwmno β€” each PWM chip provides a number of PWM outputs, so we gotta pick one. pwmset configures the pwmnoth PWM output of the selected chip. pwmno defaults to 0 too. twins! ✨
  • -e β€” requests that the specified waveform is implemented exactly. and if that isn't possible? pwmset fails. no compromises, no half-measures, no "close enough." she said exact or nothing, and honestly? main character energy. πŸ’€
  • -s sleepns β€” 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, let pwmset keep control over the PWM for sleepns nanoseconds. the default value for sleepns is 5000000000, i.e. five seconds. yes that's a lot of digits, she's worth it.
  • -P periodlength β€” 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. 🌈
  • -D dutylength β€” 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. πŸ”₯
  • -O dutyoffset β€” 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: -e means exact or bust, and -s is 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