This repository contains c2usb Zephyr sample applications.
The first step is to initialize the workspace folder (c2usb-workspace
) where
this repository and all Zephyr 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-zephyr-examples c2usb-workspace
# update Zephyr modules
cd c2usb-workspace
west update
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 LED.
A USB HID mouse, with high-resolution scrolling support. The LED lights up if the host enables this feature. The board's buttons 1 and 2 either scroll up and down, or move the pointer left and right, depending on the state of button 4. Button 3 controls the left mouse button.
To build an application, run the following command:
cd c2usb-zephyr-examples
west build -b nrf52840dk/nrf52840 usb-keyboard
Once you have built the application, run the following command to flash it:
west flash