tuya/tuyaopen-ide-manifests/pwm

Claude Code and agent skill by tuya/tuyaopen-ide-manifests

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

TuyaOS PWM via tkl_pwm: init, start, duty/freq update, stop. PWM、调光、蜂鸣器、舵机、tkl_pwm。

Install

npx vskill@latest install tuya/tuyaopen-ide-manifests/pwm

SKILL.md

TuyaOS PWM (tkl_pwm)

Demo: …/examples/driver_pwm/example_driver_pwm.c

Confirm first

  • PWM id and pin. Demo notes: if pin→pwm mapping is unclear, use

tkl_io_pin_to_func in platform tkl_pinmux (when available).

Pattern

c
#include "tkl_pwm.h"
#include "tal_log.h"
#define PWM_ID 0
void app_pwm_start(void)
{
TUYA_PWM_BASE_CFG_T pwm_cfg = {0};
/* frequency / duty / polarity — copy fields from demo for this SDK */
if (tkl_pwm_init(PWM_ID, &pwm_cfg) != OPRT_OK) {
TAL_PR_ERR("pwm init fail");
return;
}
tkl_pwm_start(PWM_ID);
/* update duty/freq at runtime */
tkl_pwm_info_set(PWM_ID, &pwm_cfg);
}
void app_pwm_stop(void)
{
tkl_pwm_stop(PWM_ID);
}

API

FunctionRole
tkl_pwm_init / tkl_pwm_start / tkl_pwm_stoplifecycle
tkl_pwm_info_setupdate params
tkl_pwm_frequency_setif implemented on platform

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tuya/tuyaopen-ide-manifests/pwm/badge)](https://verified-skill.com/skills/tuya/tuyaopen-ide-manifests/pwm)

Something wrong with this skill or its page? Tell us.