[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CX0EVPWZ52M7ZCCNRY879Y":3,"skill-same:01M6CX0EVPWZ52M7ZCCNRY879Y":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":32,"commitSha":33,"skillDirectory":5,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M6CX0EVPWZ52M7ZCCNRY879Y","embedded-systems",null,"Embedded systems design and programming","ffsshhttiikk\u002Fopencode-agents-skills","ffsshhttiikk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F226346827?v=4","01M6CWD9RR3Y7VRQX3MXYC8FYH","01M6CWD9WVPYAZW0J82G1VKGHY",3,"MIT","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fembedded-systems\u002FSKILL.md",[],[18,19,20,21,22,23,24],"embedded","embedded systems","design","engineering","firmware","programming","opencode","2026-11-10 10:12:30",false,"---\nname: embedded-systems\ndescription: Embedded systems design and programming\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  audience: firmware engineers, embedded developers\n  category: engineering\n---\n\n## What I do\n\n- Design firmware for microcontrollers and microprocessors\n- Implement real-time operating systems (RTOS)\n- Interface with sensors, actuators, and peripherals\n- Optimize code for resource-constrained systems\n- Debug hardware\u002Fsoftware issues\n\n## When to use me\n\n- When developing firmware for microcontrollers\n- When interfacing with hardware peripherals\n- When implementing communication protocols\n- When optimizing for low power or memory constraints\n- When debugging embedded systems issues\n\n## Key Concepts\n\n### Microcontroller Basics\n\n```c\n\u002F\u002F Example: STM32 GPIO configuration\nvoid GPIO_Init(GPIO_TypeDef *port, uint8_t pin, uint8_t mode) {\n    \u002F\u002F Enable clock\n    if (port == GPIOA) RCC->APB2ENR |= RCC_APB2ENR_IOPAEN;\n    \n    \u002F\u002F Configure pin mode\n    port->CRL &= ~(0xF \u003C\u003C (pin * 4));  \u002F\u002F Clear\n    port->CRL |= (mode \u003C\u003C (pin * 4));   \u002F\u002F Set\n}\n\n\u002F\u002F Interrupt handler\nvoid EXTI0_IRQHandler(void) {\n    if (EXTI->PR & EXTI_PR_PR0) {\n        \u002F\u002F Handle interrupt\n        EXTI->PR = EXTI_PR_PR0;  \u002F\u002F Clear pending\n    }\n}\n```\n\n### RTOS Concepts\n\n```c\n\u002F\u002F FreeRTOS task creation\nvoid vTaskCode(void *pvParameters) {\n    while (1) {\n        \u002F\u002F Task functionality\n        vTaskDelay(pdMS_TO_TICKS(100));\n    }\n}\n\nvoid create_tasks() {\n    xTaskCreate(vTaskCode, \"Task1\", configMINIMAL_STACK_SIZE, \n                NULL, 1, NULL);\n    xTaskCreate(vTaskCode, \"Task2\", configMINIMAL_STACK_SIZE, \n                NULL, 2, NULL);\n}\n\n\u002F\u002F Queue communication\nQueueHandle_t xQueue;\nxQueue = xQueueCreate(10, sizeof(int32_t));\nxQueueSend(xQueue, &value, 0);\nxQueueReceive(xQueue, &received, portMAX_DELAY);\n```\n\n### Communication Protocols\n\n```python\n# I2C communication\nclass I2CDevice:\n    def __init__(self, address):\n        self.address = address\n    \n    def read_register(self, reg):\n        \"\"\"Read from register\"\"\"\n        # I2C read sequence: START → ADDR+W → REG → START → ADDR+R → DATA → STOP\n        pass\n    \n    def write_register(self, reg, value):\n        \"\"\"Write to register\"\"\"\n        # I2C write sequence: START → ADDR+W → REG → DATA → STOP\n        pass\n\n# SPI communication\nclass SPIDevice:\n    def __init__(self, clk, mosi, miso, cs):\n        self.clk = clk\n        self.mosi = mosi\n        self.miso = miso\n        self.cs = cs\n    \n    def transfer(self, data):\n        \"\"\"Full duplex SPI transfer\"\"\"\n        # Shift out data while shifting in response\n        pass\n```\n\n### Common Embedded Peripherals\n\n| Peripheral | Protocol | Use Case |\n|------------|----------|----------|\n| UART\u002FUSART | Async serial | Debug, GPS, Bluetooth |\n| SPI | Serial synchronous | Sensors, SD cards, displays |\n| I2C | Two-wire serial | Sensors, EEPROMs, RTCs |\n| ADC | N\u002FA | Analog sensors |\n| PWM | N\u002FA | Motor control, LEDs |\n| Timer | N\u002FA | Timing, interrupts |\n\n### Power Optimization\n\n```c\n\u002F\u002F Low power mode transitions\nvoid enter_sleep_mode(uint8_t mode) {\n    \u002F\u002F Save state\n    SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;\n    \n    switch(mode) {\n        case SLEEP:\n            PWR->CR |= PWR_CR_LPDS;\n            break;\n        case STOP:\n            PWR->CR |= PWR_CR_LPDS;\n            PWR->CR |= PWR_CR_CSBF;\n            break;\n        case STANDBY:\n            PWR->CR |= PWR_CR_PDDS;\n            break;\n    }\n    \n    __WFI();  \u002F\u002F Wait for interrupt\n}\n\n\u002F\u002F Clock gating for unused peripherals\nvoid disable_unused_clocks() {\n    RCC->APB1ENR = 0;  \u002F\u002F Disable all APB1\n    RCC->APB2ENR = 0;  \u002F\u002F Disable all APB2\n}\n```\n\n### Common Microcontrollers\n\n| Family | Architecture | Use Cases |\n|--------|-------------|-----------|\n| STM32 | ARM Cortex-M | General purpose |\n| ESP32 | Xtensa dual-core | WiFi, BLE, IoT |\n| ATmega | AVR | Arduino, simple apps |\n| PIC | PIC | Industrial, automotive |\n| nRF52 | ARM Cortex-M | BLE, wearables |\n\n### Debugging\n\n```c\n\u002F\u002F Assert macro for development\n#ifdef DEBUG\n#define ASSERT(condition) \\\n    if (!(condition)) { \\\n        while(1);  \u002F\u002F Break here \\\n    }\n#else\n#define ASSERT(condition)\n#endif\n\n\u002F\u002F Ring buffer implementation\ntypedef struct {\n    uint8_t *buffer;\n    uint16_t head;\n    uint16_t tail;\n    uint16_t size;\n} RingBuffer;\n\nuint8_t rb_put(RingBuffer *rb, uint8_t data) {\n    uint16_t next = (rb->head + 1) % rb->size;\n    if (next == rb->tail) return 0;  \u002F\u002F Full\n    rb->buffer[rb->head] = data;\n    rb->head = next;\n    return 1;\n}\n```\n","## What I do\n\n- Design firmware for microcontrollers and microprocessors\n- Implement real-time operating systems (RTOS)\n- Interface with sensors, actuators, and peripherals\n- Optimize code for resource-constrained systems\n- Debug hardware\u002Fsoftware issues\n\n## When to use me\n\n- When developing firmware for microcontrollers\n- When interfacing with hardware peripherals\n- When implementing communication protocols\n- When optimizing for low power or memory constraints\n- When debugging embedded systems issues\n\n## Key Concepts\n\n### Microcontroller Basics\n\n```c\n\u002F\u002F Example: STM32 GPIO configuration\nvoid GPIO_Init(GPIO_TypeDef *port, uint8_t pin, uint8_t mode) {\n    \u002F\u002F Enable clock\n    if (port == GPIOA) RCC->APB2ENR |= RCC_APB2ENR_IOPAEN;\n    \n    \u002F\u002F Configure pin mode\n    port->CRL &= ~(0xF \u003C\u003C (pin * 4));  \u002F\u002F Clear\n    port->CRL |= (mode \u003C\u003C (pin * 4));   \u002F\u002F Set\n}\n\n\u002F\u002F Interrupt handler\nvoid EXTI0_IRQHandler(void) {\n    if (EXTI->PR & EXTI_PR_PR0) {\n        \u002F\u002F Handle interrupt\n        EXTI->PR = EXTI_PR_PR0;  \u002F\u002F Clear pending\n    }\n}\n```\n\n### RTOS Concepts\n\n```c\n\u002F\u002F FreeRTOS task creation\nvoid vTaskCode(void *pvParameters) {\n    while (1) {\n        \u002F\u002F Task functionality\n        vTaskDelay(pdMS_TO_TICKS(100));\n    }\n}\n\nvoid create_tasks() {\n    xTaskCreate(vTaskCode, \"Task1\", configMINIMAL_STACK_SIZE, \n                NULL, 1, NULL);\n    xTaskCreate(vTaskCode, \"Task2\", configMINIMAL_STACK_SIZE, \n                NULL, 2, NULL);\n}\n\n\u002F\u002F Queue communication\nQueueHandle_t xQueue;\nxQueue = xQueueCreate(10, sizeof(int32_t));\nxQueueSend(xQueue, &value, 0);\nxQueueReceive(xQueue, &received, portMAX_DELAY);\n```\n\n### Communication Protocols\n\n```python\n# I2C communication\nclass I2CDevice:\n    def __init__(self, address):\n        self.address = address\n    \n    def read_register(self, reg):\n        \"\"\"Read from register\"\"\"\n        # I2C read sequence: START → ADDR+W → REG → START → ADDR+R → DATA → STOP\n        pass\n    \n    def write_register(self, reg, value):\n        \"\"\"Write to register\"\"\"\n        # I2C write sequence: START → ADDR+W → REG → DATA → STOP\n        pass\n\n# SPI communication\nclass SPIDevice:\n    def __init__(self, clk, mosi, miso, cs):\n        self.clk = clk\n        self.mosi = mosi\n        self.miso = miso\n        self.cs = cs\n    \n    def transfer(self, data):\n        \"\"\"Full duplex SPI transfer\"\"\"\n        # Shift out data while shifting in response\n        pass\n```\n\n### Common Embedded Peripherals\n\n| Peripheral | Protocol | Use Case |\n|------------|----------|----------|\n| UART\u002FUSART | Async serial | Debug, GPS, Bluetooth |\n| SPI | Serial synchronous | Sensors, SD cards, displays |\n| I2C | Two-wire serial | Sensors, EEPROMs, RTCs |\n| ADC | N\u002FA | Analog sensors |\n| PWM | N\u002FA | Motor control, LEDs |\n| Timer | N\u002FA | Timing, interrupts |\n\n### Power Optimization\n\n```c\n\u002F\u002F Low power mode transitions\nvoid enter_sleep_mode(uint8_t mode) {\n    \u002F\u002F Save state\n    SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;\n    \n    switch(mode) {\n        case SLEEP:\n            PWR->CR |= PWR_CR_LPDS;\n            break;\n        case STOP:\n            PWR->CR |= PWR_CR_LPDS;\n            PWR->CR |= PWR_CR_CSBF;\n            break;\n        case STANDBY:\n            PWR->CR |= PWR_CR_PDDS;\n            break;\n    }\n    \n    __WFI();  \u002F\u002F Wait for interrupt\n}\n\n\u002F\u002F Clock gating for unused peripherals\nvoid disable_unused_clocks() {\n    RCC->APB1ENR = 0;  \u002F\u002F Disable all APB1\n    RCC->APB2ENR = 0;  \u002F\u002F Disable all APB2\n}\n```\n\n### Common Microcontrollers\n\n| Family | Architecture | Use Cases |\n|--------|-------------|-----------|\n| STM32 | ARM Cortex-M | General purpose |\n| ESP32 | Xtensa dual-core | WiFi, BLE, IoT |\n| ATmega | AVR | Arduino, simple apps |\n| PIC | PIC | Industrial, automotive |\n| nRF52 | ARM Cortex-M | BLE, wearables |\n\n### Debugging\n\n```c\n\u002F\u002F Assert macro for development\n#ifdef DEBUG\n#define ASSERT(condition) \\\n    if (!(condition)) { \\\n        while(1);  \u002F\u002F Break here \\\n    }\n#else\n#define ASSERT(condition)\n#endif\n\n\u002F\u002F Ring buffer implementation\ntypedef struct {\n    uint8_t *buffer;\n    uint16_t head;\n    uint16_t tail;\n    uint16_t size;\n} RingBuffer;\n\nuint8_t rb_put(RingBuffer *rb, uint8_t data) {\n    uint16_t next = (rb->head + 1) % rb->size;\n    if (next == rb->tail) return 0;  \u002F\u002F Full\n    rb->buffer[rb->head] = data;\n    rb->head = next;\n    return 1;\n}\n```\n",{"name":5,"license":14,"metadata":30,"description":7,"compatibility":24},{"audience":31,"category":21},"firmware engineers, embedded developers","main","5f7a3e453c98261f93d19a6a7de44ad8f7b72d41",2,"https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk","2026-03-01 06:55:40",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill embedded-systems",{"tool":44,"command":45},"bunx","bunx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill embedded-systems",{"tool":47,"command":48},"pnpm","pnpm dlx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill embedded-systems","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fembedded-systems\u002FSKILL.md",true,[],[53,64,74,83,93,102],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":25},"01M6CXT9TXDF79BWJTMQAPB49G","xamarin","Xamarin cross-platform development","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fxamarin\u002FSKILL.md",[],[55,60,61,62,24,63],"platform","cross-platform","mobile","development",{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":25},"01M6CXT8AD04MFYDA32VW3FKAG","wrangling","Data wrangling fundamentals","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwrangling\u002FSKILL.md",[],[66,71,24,72,73],"data wrangling","science","data",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":25},"01M6CXT717GCN7SRRNPBDP4508","windows","Windows operating system administration and scripting","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwindows\u002FSKILL.md",[],[76,81,24,82],"system","scripting",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":25},"01M6CXT54K794NMEM3XAPZZDKT","wide-column","Wide-column data model","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column\u002FSKILL.md",[],[90,91,24,92,73],"wide column","databases","model",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":25},"01M6CXT28FMT2P4V9GZE67WA8E","wide-column-stores","Wide-column database stores","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column-stores\u002FSKILL.md",[],[100,91,24,101],"wide column stores","database",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":25},"01M6CXT0D0M0Q4T2N7C2RX7DSN","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwebsockets\u002FSKILL.md",[],[104,109,110,111,24,112,113],"websocket","real-time","time","best practices","implementation"]