Skip to content

IntergatedCircuits/c2usb-mcux-examples

Repository files navigation

c2usb MCUX SDK sample applications

This repository contains c2usb MCUXpresso SDK sample applications.

Initialization

The first step is to initialize the workspace folder (c2usb-workspace) where this repository and all MCUXpresso SDK modules will be cloned. Run the following command:

# initialize my-workspace for the usb-keyboard (main branch)
west init -m https://github.com/IntergatedCircuits/c2usb-mcux-examples c2usb-workspace
cd c2usb-mcux-workspace
pip3 install -r scripts/requirements.txt
# update mcuxsdk modules
west update && west patch

You can continue developing with the command line, or with the MCUXpresso for VS Code extension. In the latter case open the projects.code-workspace file in vscode.

Application Index

hid-keyboard

A straightforward USB HID keyboard. Use the button on the board to trigger a caps lock press, and observe as the host changes the caps lock state on the board's red LED. When suspended, the button press triggers a remote wakeup request.

hid-mouse

A USB HID mouse, with high-resolution scrolling support. The red LED lights up if the host enables this feature. The board's SW2 button scrolls down.

Building and running

To build an application, run the following command:

cd c2usb-mcux-examples/hid-keyboard
BOARD=frdmk22f west build -d release -- --preset release

Once you have built the application, run the following command to flash it:

west flash

About

Demonstrating c2usb integration with mcux-sdk

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published