# Question about code

**URL:** <https://forum.sunfounder.com/t/question-about-code/578>\
**Category:** General\
**Created:** [October 12, 2023, 8:53pm UTC](https://forum.sunfounder.com/t/question-about-code/578 "2023-10-12T20:53:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![EdMireles](https://avatars.discourse-cdn.com/v4/letter/e/a5b964/32.png) [@EdMireles](https://forum.sunfounder.com/u/EdMireles)\
**Post date:** [October 12, 2023, 8:53pm UTC](https://forum.sunfounder.com/t/question-about-code/578/1 "2023-10-12T20:53:37Z")

</div>

I have a question about what this line of code is doing: addr = i2c.scan()[0].  
This line is in the micropython learning module LCD1602\_Display\_CPU\_Temp.py. I keep getting a error - IndexError: list index out of range, and am not sure what the problem is.

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [October 13, 2023, 2:35am UTC](https://forum.sunfounder.com/t/question-about-code/578/2 "2023-10-13T02:35:06Z")

</div>

Please tell us what product you used and where your code came from.

---

<div class="post-metadata">

**Author:** ![EdMireles](https://avatars.discourse-cdn.com/v4/letter/e/a5b964/32.png) [@EdMireles](https://forum.sunfounder.com/u/EdMireles)\
**Post date:** [October 13, 2023, 1:40pm UTC](https://forum.sunfounder.com/t/question-about-code/578/3 "2023-10-13T13:40:50Z")

</div>

I purchased the Sunfounder Kepler Ultimate Starter Kit and downloaded the libraries - kepler-kit-main.zip using this link -

- [`SunFounder Kepler Kit`](https://github.com/sunfounder/kepler-kit/archive/refs/heads/main.zip)

---

<div class="post-metadata">

**Author:** ![EdMireles](https://avatars.discourse-cdn.com/v4/letter/e/a5b964/32.png) [@EdMireles](https://forum.sunfounder.com/u/EdMireles)\
**Post date:** [October 13, 2023, 1:48pm UTC](https://forum.sunfounder.com/t/question-about-code/578/4 "2023-10-13T13:48:50Z")

</div>

I cannot remember right now where I actually got the code from but the project is in the Programming Starter Kit - Project 27 LCD1602 Display with BMP280

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [October 16, 2023, 7:01am UTC](https://forum.sunfounder.com/t/question-about-code/578/5 "2023-10-16T07:01:31Z")

</div>

Sorry, we didn’t find the corresponding code in Kepler Kit [For MicroPython User — SunFounder Kepler Kit for Raspberry Pi Pico W 1.0 documentation](https://docs.sunfounder.com/projects/kepler-kit/en/latest/pyproject/for_micropython_user.html).  
Perhaps you can provide us with your full code so we can test it.
