Compatible with stm32duino
Hi, is that library compatible with smt32duino?
I try to use it in my project but I have many problems, for first example:
In setup() I have this code:
void setup()
{
Serial.begin(9600);
Serial.print("init relays ");
Serial.println(expRelays.begin());
expRelays.pinMode(SSR, OUTPUT);
expRelays.digitalWrite(SSR, LOW);
expRelays.pinMode(Swiatlo, OUTPUT);
expRelays.digitalWrite(Swiatlo, LOW);
expRelays.pinMode(kbLED, OUTPUT);
expRelays.digitalWrite(kbLED, HIGH);
expRelays.pinMode(relay_1, OUTPUT);
expRelays.digitalWrite(relay_1, HIGH);
expRelays.pinMode(relay_2, OUTPUT);
expRelays.digitalWrite(relay_2, HIGH);
expRelays.pinMode(relay_3, OUTPUT);
expRelays.digitalWrite(relay_3, HIGH);
expRelays.pinMode(relay_4, OUTPUT);
expRelays.digitalWrite(relay_4, HIGH);
}
problem: relays change state after many of seconds, not immediatelly. Why?
CPU is stm32f401CCU6 (Black pill from waveshare), platform = ststm32@^15.4.1, vscode, platformio.
I use 3 expanders - one for buttons, second for relays and third for lcd 20x4.
Sometimes after pushing button - program hangs - randomly.
Have You tried this library with stm32 compatibility?