09-03-2022, 12:21
Może po prostu otwórz przykład test i obejrzyj. Tam są takie funkcje:
Gdzie PCF. to Twoje ex1. czyli nie digitalWrite, tylko ex1.write(gdzieś,coś).
Kod:
void doHigh()
{
PCF.write(4, HIGH);
int x = PCF.read16();
Serial.print("Read ");
printHex(x);
}
void doLow()
{
PCF.write(4, LOW);
int x = PCF.read16();
Serial.print("Read ");
printHex(x);
}
void doToggle()
{
PCF.toggle(4);
int x = PCF.read16();
Serial.print("Read ");
printHex(x);
}
Miło być decenianym https://buycoffee.to/kaczakat