Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/upload_component.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish to ESP Component Registry

# Publishes the component to https://components.espressif.com whenever a
# release tag (e.g. v3.1.0) is pushed. Requires an IDF_COMPONENT_API_TOKEN
# secret created from your Espressif registry account.
on:
push:
tags:
- "v*"
workflow_dispatch:

jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Upload component
uses: espressif/upload-components-ci-action@v2
with:
name: "ps2keyboard"
namespace: "lahirunirmalx"
api_token: ${{ secrets.IDF_COMPONENT_API_TOKEN }}
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# ESP-IDF / PlatformIO build artifacts
build/
.pio/
managed_components/
dependencies.lock

# Per-project IDF config (defaults live in sdkconfig.defaults)
sdkconfig
sdkconfig.old

# Component archive produced by `compote component pack`
dist/
*.tgz

# Editor / OS noise
.vscode/
.idea/
.DS_Store
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Changelog

All notable changes to this component are documented here. This project
adheres to [Semantic Versioning](https://semver.org/).

## [3.1.0] - 2026-05

### Added
- Native ESP-IDF port: pure `driver/gpio` + `esp_timer`, IRAM ISR, plain C API.
- ESP Component Registry packaging (manifest metadata, examples, LICENSE).

### Notes
- Supersedes the Arduino-only line for ESP-IDF projects.

## [3.0.0] - 2026-01

### Added
- ESP32 / ESP8266 (Arduino) support.
- Caps / Num / Scroll Lock LED control.

## [2.x]

- Multi-platform Arduino library (Uno, Mega, Due, Teensy).
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
idf_component_register(
SRCS
"src/ps2keyboard.c"
"src/ps2keymap_us.c"
INCLUDE_DIRS
"include"
REQUIRES
driver
esp_timer
)
501 changes: 501 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

Loading