<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Asset Tracker v2, using I2C instead of LEDs with UI module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110525/asset-tracker-v2-using-i2c-instead-of-leds-with-ui-module</link><description>I have read some of the Asset Tracker documentation and noticed there is a nice implementation for operating LEDs in the UI module. This seems straightforward for GPIO control, but what about using an I2C device instead? We have our own LED driver that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Sep 2024 16:02:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110525/asset-tracker-v2-using-i2c-instead-of-leds-with-ui-module" /><item><title>RE: Asset Tracker v2, using I2C instead of LEDs with UI module</title><link>https://devzone.nordicsemi.com/thread/501415?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2024 16:02:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8998fbf-0ef8-4682-99aa-e94ce1eff43a</guid><dc:creator>Hakon</dc:creator><description>[quote user="Sakari S"]Would creating an event or module etc. that would execute this be a more &amp;#39;correct&amp;#39; way?[/quote]
&lt;p&gt;Creating a module would probably be the way to go then. Then in the event handler of that module you would perform the actions on the I2C based on the event received. You can take a look at this for reference &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/others/app_event_manager.html#code_example"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/others/app_event_manager.html#code_example&lt;/a&gt; .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2, using I2C instead of LEDs with UI module</title><link>https://devzone.nordicsemi.com/thread/499486?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2024 07:55:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbbfcfb7-caba-4342-a936-72e330aa5a3b</guid><dc:creator>zachary_z</dc:creator><description>&lt;p&gt;I am still lost on this. I was looking into other ways to do this and read about the Application Event Manager. To rephrase my problem, my goal is to perform an action on an I2C device depending on what the chip is doing within the Asset Tracker program. Would creating an event or module etc. that would execute this be a more &amp;#39;correct&amp;#39; way?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2, using I2C instead of LEDs with UI module</title><link>https://devzone.nordicsemi.com/thread/496792?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2024 11:23:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c9449d2-f3fc-4c5f-a6bc-452f3232efa6</guid><dc:creator>Hakon</dc:creator><description>[quote user="Sakari S"]Do you have any recommendations on where to start modifying the code to either bypass the high level APIs[/quote]
&lt;p&gt;If you want to &amp;quot;bypass the high level API&amp;quot; you can just set the GPIO pins directly, which is what is done in the sample I provided. But you said that the LED driver uses I2C to access the LEDs, which means you probably need to write your own functions for communicating with the LEDs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2, using I2C instead of LEDs with UI module</title><link>https://devzone.nordicsemi.com/thread/494577?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2024 12:49:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5562bf4-0657-4aae-88dc-d64f6fa9e6e9</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;&lt;span&gt;Håkon will be back next week, pardon the delay, summer vacation in Norway.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Jonathan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2, using I2C instead of LEDs with UI module</title><link>https://devzone.nordicsemi.com/thread/493154?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 12:25:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dda6367b-b3f2-4714-8f1d-743871de4bce</guid><dc:creator>zachary_z</dc:creator><description>&lt;p&gt;Do you have any recommendations on where to start modifying the code to either bypass the high level APIs or on how to make the I2C compatible with this API?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2, using I2C instead of LEDs with UI module</title><link>https://devzone.nordicsemi.com/thread/488169?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 15:22:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fc2ac90-b3b5-41e5-b74d-c214461107bc</guid><dc:creator>Hakon</dc:creator><description>[quote user="Sakari S"]For example, I cannot find any instance of gpio_pin_configure_dt being called in Asset Tracker.[/quote]
&lt;p&gt;That&amp;#39;s most probably because Asset Tracker is using a more high level API to access the LEDs. This sample uses a more low level approach and accesses the LEDs directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2, using I2C instead of LEDs with UI module</title><link>https://devzone.nordicsemi.com/thread/487765?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 14:01:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a310e06-5ae2-4702-91a9-de384c99992c</guid><dc:creator>zachary_z</dc:creator><description>&lt;p&gt;This example is familiar to me. My problem is that I cannot find the piece of code that uses any of these functions from the Asset Tracker&amp;#39;s code. For example, I cannot find any instance of gpio_pin_configure_dt being called in Asset Tracker.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2, using I2C instead of LEDs with UI module</title><link>https://devzone.nordicsemi.com/thread/487739?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 13:14:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d0eaec0-6764-4dcb-9f7b-4b250e878288</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Have you looked at this sample? &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/basic/blinky/src/main.c"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/basic/blinky/src/main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2, using I2C instead of LEDs with UI module</title><link>https://devzone.nordicsemi.com/thread/486576?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 08:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24da4d3e-00fa-42ea-8387-8d189e479a76</guid><dc:creator>zachary_z</dc:creator><description>&lt;p&gt;I&amp;#39;m currently having difficulty figuring out what functions actually control the LEDs, for example the actual functions that drive the GPIO pins. My idea was to just modify these. Any tips on where to start?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Asset Tracker v2, using I2C instead of LEDs with UI module</title><link>https://devzone.nordicsemi.com/thread/480490?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 13:54:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c647ebb-44f1-46e7-9cac-8fb775266411</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;if you have a LED driver that uses I2C then of course you need to use I2C to communicate with it and not GPIO.&lt;/p&gt;
[quote user=""]Is there a simple way to program this or would it be much more time-consuming?[/quote]
&lt;p&gt;I don&amp;#39;t know. What type of LED driver is it? Do you have a data sheet for it? I can&amp;#39;t imagine it being a hard task.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>