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
- All Categories
- 63 Announcements & News
- 139 Product News - New Product/Product Change Notice/ End-of-life
- 112 Welcome Developers!
- 60 Unboxing & Project Sharing
- 114 Tech Updates
- 3.6K UP Products
- 119 UP 7000
- 25 UP Squared i12
- 24 UP Xtreme i12
- 14 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 24 UP Squared V2
- 65 UP 4000
- 23 UP Xtreme i11
- 34 UP Squared 6000
- 59 UP Squared Pro
- 135 UP Xtreme
- 820 UP Squared
- 1.4K UP Board
- 74 UP Core Plus
- 217 UP Core
- 3 UP Xtreme Lite
- 40 UP AI Edge
- 265 Starter Kits & Peripheral