ESP_Easy_mega_20200829_dev I²C scan doesn't show possible devices

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
Grumpf
Normal user
Posts: 124
Joined: 05 May 2017, 23:45
Location: Namur

ESP_Easy_mega_20200829_dev I²C scan doesn't show possible devices

#1 Post by Grumpf » 04 Sep 2020, 13:11

The scan doesn't populate the supported devices column. Otherwise, it works fine.

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ESP_Easy_mega_20200829_dev I²C scan doesn't show possible devices

#2 Post by Ath » 04 Sep 2020, 13:19

To preserve memory the names of the devices are not displayed on the 'memory challenged' builds, including the TEST builds. Using most NORMAL builds will show the device names here.
/Ton (PayPal.me)

User avatar
Grumpf
Normal user
Posts: 124
Joined: 05 May 2017, 23:45
Location: Namur

Re: ESP_Easy_mega_20200829_dev I²C scan doesn't show possible devices

#3 Post by Grumpf » 04 Sep 2020, 14:16

Good to know. Thanks.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESP_Easy_mega_20200829_dev I²C scan doesn't show possible devices

#4 Post by TD-er » 04 Sep 2020, 17:38

Indeed, I wrapped all those strings into a define check at build in an attempt to reduce build size.

Now we're talking about this, just want to ask about a change I have in mind.
Currently the list of device strings is not even up-to-date with all the supported I2C devices.
It is also something that's likely to get out of date again after a while.
So I was thinking, we can also add a simple check for I2C addresses in the plugin code.
This means the scan will show devices included in the build and not device strings that may not be included.

Is that something that's really useful to have (list of device names not included in the build) or can we do without and just have the included plugin device names show up?

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ESP_Easy_mega_20200829_dev I²C scan doesn't show possible devices

#5 Post by Ath » 04 Sep 2020, 19:07

TD-er wrote: 04 Sep 2020, 17:38 So I was thinking, we can also add a simple check for I2C addresses in the plugin code.
This means the scan will show devices included in the build and not device strings that may not be included.

Is that something that's really useful to have (list of device names not included in the build) or can we do without and just have the included plugin device names show up?
Hmm, the advantage of a plugin-independent I2C scan is that all connected devices are shown.
Maybe a combined/improved feature would be even more useful, so, interrogating all available plugins for supported I2C addresses, but still display the list of known I2C addresses and possible device names/types. It will be challenging to keep that list up to date, that's for sure!
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESP_Easy_mega_20200829_dev I²C scan doesn't show possible devices

#6 Post by TD-er » 04 Sep 2020, 21:09

Well not saying the detected addresses will then not be shown.
But right now you have a lot of plugins matching some address, even though the plugin isn't present and there may be one present which is then somewhat hidden among the others.

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests