Hi, I try to get my CH32V003F4P6 talk I2C
My Board is a “Home Made One”. Just all pins accessible via Header Pins. Programming is done via the SWDIO Pin. Using the pins as GPIO works like a charm.
I use PlatformIO with the recently added CH32V003 support, and I updated the WCH32 Platform today.
I wrote a simple I2C Scanner:
#include <Wire.h>
int address = 1;
void setup()
{
Wire.begin(PC1, PC2);
}
void loop()
{
Wire.beginTransmission(address);
Wire.endTransmission();
address++;
if (address > 127)
{
address = 1;
}
}
My PlatformIO look like this:
[env:genericCH32V003F4P6]
platform = ch32v
board = genericCH32V003F4P6
framework = arduino
I compile and upload my code to the CH32V003. No problems.
I use my oscilloscope to check if I get ANY “Action” on any pin indicating I2C activity. Neither PC1/PC2 show any pulses nor does any other pin.
All pins I checked are pulled up via 4k7 Ohm resistors.
What am I doing wrong?