This submission includes example Driver blocks for LEGO Mindstorm NXT and Arduino support packages.
See this blog posts for more details:
Updated link in description
Added comments in C code
Inspired by: Device Drivers
Create scripts with code, output, and formatted text in a single executable document.