Sketch: programazioa
Koadro honetan ikus dezakezu liburutegia kargatu ondoren Arduino MKR Wifi 1010 plakara bidaliko dugun programa:
/* Arduino IoT Cloud Variables description The following variables are automatically generated and updated when changes are made to the Thing float sonidomuestra; Variables which are marked as READ/WRITE in the Cloud Thing will also have functions const int sensorPIN = A0; // Soinu-sentsorearen banda-zabalera deklaratzen dugu #include "thingProperties.h" |
void setup() { Serial.begin(9600); // Atzerapen honek serieko monitore baten zain egoteko aukera ematen du blokeatu gabe, ez bada aurkitu delay(1500); // thingProperties-en definitua.h initProperties(); // Konektatu Arduino IoT Cloud-era ArduinoCloud.begin(ArduinoIoTPreferredConnection); |
// Hemen zure kodea unsigned long startMillis= millis(); unsigned int signalMax = 0; unsigned int sample; sonidomuestra=sample; // Emaitzak "serie monitore" bidez ere ikus ditzakegu
else Serial.println(" ------ "); } |