I2C data transferring

Hello,
I have an issue by using I2C in Windows 10 (NOT IoT). I have connected wires to PIN 3 and 5 on UP board 40 HAT pins. I used to use Linux debian and i2cdetect -y -r 1 showed that there is one I2C device 0x3C. So now i Installed Windows 10 and tried to run as follows:
EApiLibInitialize();
rc = EApiI2CProbeDevice(0, 0x3c); rc - EAPI_STATUS_ERROR (0xFFFFF0FF)
rc = EApiI2CProbeDevice(1, 0x3c); rc - EAPI_STATUS_UNSUPPORTED(FFFFFCFF)
By the way I also tried to use EApiGPIOSetLevel function and it works perfect!
Please help me to find my I2C device in Windows 10.
BIOS version R1.7
UP framework service 17.59.46.759 (8/27/2019)
Answers
-
Hi @fenix710 ,
On Windows ,I2C Bus definie is different from linux,you can reference below setting to work.
For PIN3,PIN5 , I2C BUS is definie 3 - > EApiI2CProbeDevice(3, 0x3c);
For PIN27,PIN28 ,I2C BUS is definie 0 - > EApiI2CProbeDevice(0, 0x3c);
Tagged
Categories
- 301 All Categories
- 104 Announcements & News
- 51 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 52 Unboxing & Project Sharing
- 24 Tech Updates
- 550 UP Products
- 1 UP Xtreme i12
- UP Squared Pro 7000
- 1 UP Element i12 Edge
- 11 UP Squared V2
- 26 UP 4000
- 24 UP Xtreme i11
- 34 UP Squared 6000
- 44 UP Squared Pro
- 140 UP Xtreme
- 819 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 43 UP AI Edge
- 215 Starter Kits & Peripheral