Generation

generate functionMon, 24 Apr 2023

Crea una funcion que salga cuando se envie una señal

++ void ISR(void) { Serial.println("Hello World"); } void setup() { Serial.begin(9600); pinMode(2, INPUT_PULLUP); attachInterrupt(digitalPinToInterrupt(2), ISR, FALLING); } void loop() { }

Want to kickstart your project?Use the new AI Studio to create your code