PWMROUND(1)

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

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

  • -c chipno β€” every PWM chip has an identifying chip number. pwmset configures a PWM line provided by chip number chipno. chipno defaults to 0. so if you're like "which chip", it's chip 0, don't overthink it. πŸ“
  • -p pwmno β€” each PWM chip provides a number of PWM outputs. pwmset configures the pwmnoth PWM output of the selected chip. pwmno defaults to 0. first output, main character energy, no cap. πŸ‘‘
  • -P periodlength β€” periodlength in 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. ⭐
  • -D dutylength β€” 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. πŸ’–
  • -O dutyoffset β€” 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, dutylength and dutyoffset are 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