Skip to content
Discussion options

You must be logged in to vote

Apologies for being a little slow to get to this.

The driver looks great! (For completeness on close it should close the two analog instances to free up the memory and release the pins.)

While writing this I was making an example, but couldn't find any guidance of how to define the device. Is this meant to extend the import device from "embedded:provider/builtin"; or create a new device object entirely?

What you've done here is reasonable. Building the device is often a bit ad-hoc when adding peripherals to an existing device. We did something similar for our recent network protocol work (HTTP, WebSocket, etc). A host provider for an actual device with a built-in joystick would do this …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Templarian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants