# M2 Code libraries

## **J1850 VPW**

{% embed url="<https://github.com/redheadedrod/j1850>" %}

J1850 VPW protocol for M2

## **M2\_12VIO**

{% embed url="<https://github.com/TDoust/M2_12VIO>" %}

Provides 6x12V output drivers with over current protection for the output drivers and 6x12V analogue input circuits, plus support for the DUE on chip temperature.

## **M2\_SD\_HSCMI**

{% embed url="<https://github.com/macchina/M2_SD_HSMCI>" %}

Gives access to HSMCI (High Speed MultiMedia Card Interface) on M2.

## **OBD9141**

{% embed url="<https://github.com/iwanders/OBD9141>" %}

A class to read an ISO 9141-2 port found in OBD-II ports.

## **due\_wire**

{% embed url="<https://github.com/collin80/due_wire>" %}

An alternative I2C library for Due with DMA support


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.macchina.cc/product-documentation/m2-docs/m2-code-libraries.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
