Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 04:15 12 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : i2c check not working ?

Author Message
DigitalDreams
Newbie

Joined: 03/05/2025
Location: United Kingdom
Posts: 24
Posted: 01:03pm 03 Jul 2025
Copy link to clipboard 
Print this post

Very little info on this command in either version of the manual. Software 6.00002. When I try to use it with a known working i2c device...

i2c check 0x68
Error : pin not set for I2C

i2c check &h68
Error : pin not set for I2C

Info missing in the manual or typo ??
Edited 2025-07-03 23:04 by DigitalDreams
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10240
Posted: 01:05pm 03 Jul 2025
Copy link to clipboard 
Print this post

i2c2 check?
 
DigitalDreams
Newbie

Joined: 03/05/2025
Location: United Kingdom
Posts: 24
Posted: 01:22pm 03 Jul 2025
Copy link to clipboard 
Print this post

  matherp said  i2c2 check?


No error but pin list returns...
GP6 9  System i2c SDA
GP7 10 System i2c SCL

And option list...
Option system i2c gp6 gp7 slow.

Hence I expected i2c not i2c2 ?!
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10240
Posted: 01:26pm 03 Jul 2025
Copy link to clipboard 
Print this post

System i2c uses i2c or i2c2 depending on the pins you specify. GP6, GP7 are I2C2. Normal I2C commands like CHECK require you to use the version corresponding to the pins i2c or i2c2 as both could be in use
Edited 2025-07-03 23:28 by matherp
 
DigitalDreams
Newbie

Joined: 03/05/2025
Location: United Kingdom
Posts: 24
Posted: 01:31pm 03 Jul 2025
Copy link to clipboard 
Print this post

  matherp said  System i2c uses i2c or i2c2 depending on the pins you specify. GP6, GP7 are I2C2. Normal I2C commands like CHECK require you to use the version corresponding to the pins i2c or i2c2 as both could be in use


Ah a little confusing as the Pico2 pinout refers to i2c0 and i2c1....
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10240
Posted: 01:44pm 03 Jul 2025
Copy link to clipboard 
Print this post

MMbasic manual is your reference. The naming maintains compatibility with other MMbasic variants
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025