tuya/tuyaopen-ide-manifests/i2c

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 hardware I2C master via tkl_i2c. 硬件I2C、tkl_i2c、传感器总线、主模式读写。

Install

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

SKILL.md

TuyaOS I2C (tkl_i2c)

Demo: …/examples/driver_i2c/example_driver_i2c.c

Confirm first

  • I2C port id, speed, slave address, 7-bit vs 10-bit as required by the device.

Pattern

c
#include "tkl_i2c.h"
#include "tal_log.h"
/* port / addr / pins — confirm per board */
#define I2C_NUM_ID 0
#define SLAVE_ADDR 0x44
void app_i2c_init(void)
{
TUYA_IIC_BASE_CFG_T cfg = {0};
/* fill cfg from demo / platform headers — role, speed, addr width */
OPERATE_RET rt = tkl_i2c_init(I2C_NUM_ID, &cfg);
if (rt != OPRT_OK) {
TAL_PR_ERR("tkl_i2c_init failed %d", rt);
return;
}
}
void app_i2c_xfer_example(void)
{
uint8_t tx[2] = {0x24, 0x00};
uint8_t rx[3] = {0};
tkl_i2c_master_send(I2C_NUM_ID, SLAVE_ADDR, tx, 2, TRUE);
tkl_i2c_master_receive(I2C_NUM_ID, SLAVE_ADDR, rx, 3, TRUE);
}

API

FunctionRole
tkl_i2c_init(port, &cfg)open master
tkl_i2c_master_sendwrite
tkl_i2c_master_receiveread

Open the demo for the exact TUYA_IIC_BASE_CFG_T fields used on this SDK version. Some platforms ship tkl_i2c_weak.c stubs in the demo — real impl is in vendor.

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

Repository stars
2
Repository forks
7
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. 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/i2c/badge)](https://verified-skill.com/skills/tuya/tuyaopen-ide-manifests/i2c)

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