# Documents for Pimoroni-flavor Micropython

**URL:** <https://forums.pimoroni.com/t/documents-for-pimoroni-flavor-micropython/20454>\
**Category:** Raspberry Pi\
**Created:** [October 6, 2022, 11:30am UTC](https://forums.pimoroni.com/t/documents-for-pimoroni-flavor-micropython/20454 "2022-10-06T11:30:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![helloworld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@helloworld](https://forums.pimoroni.com/u/helloworld)\
**Post date:** [October 6, 2022, 11:30am UTC](https://forums.pimoroni.com/t/documents-for-pimoroni-flavor-micropython/20454/1 "2022-10-06T11:30:19Z")

</div>

Hi all,

Recently bought a tufty2040 and found that there is a special MicroPython image for it. But other than the graphics library that controls the screen is there any documents/manual that describe the customized API usage?

Thanks

---

<div class="post-metadata">

**Author:** ![Tonygo2](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/tonygo2/32/7814_2.png) [@Tonygo2](https://forums.pimoroni.com/u/Tonygo2)\
**Post date:** [October 6, 2022, 3:40pm UTC](https://forums.pimoroni.com/t/documents-for-pimoroni-flavor-micropython/20454/2 "2022-10-06T15:40:02Z")

</div>

This is all I have found:

> **[Getting Started with Tufty 2040](https://learn.pimoroni.com/article/getting-started-with-tufty-2040)**
>
> Learn how to program Tufty 2040 with MicroPython and Thonny. – Pimoroni Learning Portal

> <https://github.com/pimoroni/pimoroni-pico/blob/main/micropython/modules/picographics/README.md>

> **[pimoroni-pico/micropython/examples/tufty2040 at main · pimoroni/pimoroni-pico](https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/examples/tufty2040)**
>
> main/micropython/examples/tufty2040

Have fun

---

<div class="post-metadata">

**Author:** ![helloworld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@helloworld](https://forums.pimoroni.com/u/helloworld)\
**Post date:** [October 6, 2022, 3:58pm UTC](https://forums.pimoroni.com/t/documents-for-pimoroni-flavor-micropython/20454/3 "2022-10-06T15:58:41Z")

</div>

> This is all I have found  
> Actually I’ve seen those, and the tufty 2040 actually comes with the Python scripts preloaded. But thanks anyway :)

To clarify a bit, I am looking for something similar to the [MicroPython doxygen site](https://docs.micropython.org/en/latest/) for Pimoroni libraries, specifically the `PimoroniI2C` i2c class. (I was working to connect a NAU7802 ADC (Sparkfun module) to the Tufty)

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [October 6, 2022, 7:39pm UTC](https://forums.pimoroni.com/t/documents-for-pimoroni-flavor-micropython/20454/4 "2022-10-06T19:39:49Z")

</div>

The Tufty uses the Pimoroni i2c, and can use the Micro Python machine i2c.  
On my Tufty I do the following.

```auto
from pimoroni_i2c import PimoroniI2C
i2c = PimoroniI2C(sda=(4), scl=(5))

```

You can also do the following.

```auto
import machine
sda=machine.Pin(4) # Explorer 20 Breakout 4
scl=machine.Pin(5) # Explorer 21 Breakout 5
i2c=machine.I2C(0,sda=sda, scl=scl, freq=400000)

```

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [October 6, 2022, 8:09pm UTC](https://forums.pimoroni.com/t/documents-for-pimoroni-flavor-micropython/20454/5 "2022-10-06T20:09:00Z")

</div>

It should also be mentioned that the Pimoroni Tufty uf2 has the libraries for other Pimoroni breakouts etc, included. It makes connecting Breakout Garden stuff via i2c so much easier. I have a BME280 connected to mine, as a portable weather station.

---

<div class="post-metadata">

**Author:** ![helloworld](https://avatars.discourse-cdn.com/v4/letter/h/b782af/32.png) [@helloworld](https://forums.pimoroni.com/u/helloworld)\
**Post date:** [October 7, 2022, 3:40am UTC](https://forums.pimoroni.com/t/documents-for-pimoroni-flavor-micropython/20454/6 "2022-10-07T03:40:37Z")

</div>

Thanks!  
May I know do the `PimoroniI2C` has the same set of methods compared to `machine.I2C`?  
So I can use the same function set? Are there any additional methods I can use to take advantage of the custom lib?
