Below is migration information for updating existing projects based on the MyUSB library version 1.5.0 to the 1.5.1 API. It does not indicate all new additions to the library, only areas relevant to making older projects compatible with the new API.
Library Demos
- The USBtoSerial demo was broken in the 1.5.0 release, due to incorrect register polling in place of the global "Transmitting" flag. The change has been reverted in this release. Projects built upon the demo should upgrade to the latest code.
- The HID class demos did not implement the mandatory GetReport HID class request. Projects built upon the HID demos should upgrade to the latest code.
- The HID class demos incorrectly reported themselves as boot-protocol enabled HID devices in their descriptors. Projects built upon the HID demos should upgrade to the latest code.
- The MIDI device demo had incorrect AudioStreaming interface descriptors. Projects built upon the MIDI demo should upgrade to the latest code.
- The AudioOut demo did not correctly tristate the speaker pins when USB was disconnected, wasting power. Projects built upon the AudioOut demo should upgrade to the latest code.