# Need help with basic OTAA sketch using LMIC Library

**URL:** <https://www.thethingsnetwork.org/forum/t/need-help-with-basic-otaa-sketch-using-lmic-library/39283>\
**Category:** LMIC\
**Created:** [August 17, 2020, 9:19am UTC](https://www.thethingsnetwork.org/forum/t/need-help-with-basic-otaa-sketch-using-lmic-library/39283 "2020-08-17T09:19:56Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [August 18, 2020, 12:45am UTC](https://www.thethingsnetwork.org/forum/t/need-help-with-basic-otaa-sketch-using-lmic-library/39283/8 "2020-08-18T00:45:45Z")

</div>

> [@Sceletus](#):
>
> With a TTGO Lora board, pin 33 and dio101 need to be connected. When done, it works like a charm

> [@Sceletus](#):
>
> Thanks. Is there any documentation on this?

ESP32 boards and required pin mappings are already clearly documented on the forum here:  
[Big ESP32 + SX127x topic part 3](https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-3/18436)  
Searching for ESP32 or ESP32 and dio would have brought you there…

Technical details about the SX1276 and its DIO ports can be found in the Semtech SX1276 datasheet.

DIO0 and DIO1 are required for LoRa modulation, DIO2 is used for FSK modulation which is not used for TTN.

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/need-help-with-basic-otaa-sketch-using-lmic-library/39283)._
