Example using BME280 sensors on all six I2C buses.

I’ve modified the Artemis MoreI2CPorts example to use all six I2C ports with BME280 sensors. The BME280 only has 2 possible addresses, so for my application I couldn’t just connect them all to the same bus. Note that bus 5 is also used for hardware serial communications to the PC, so in this sketch I switch it between this and I2C modes. You could alternatively use software serial for communications, with a separate USB to Serial converter, but this works fine.

I tried to add the code here (within code tags) or attaching as a text file, but I get ‘403 forbidden’ for the former and http error for the latter. Is there a new way to include code?

Not sure if there’s a post size limit, so I’ll try zipping the code text file and attaching.

Nope, that doesn’t work either.

It’d be good if there were clearing error handling on this site.

Moderator can you please help with this trouble with posting.

Thank you.

Hello dlp,

How large is the compressed file?