This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:iot:examples:relay [2023/01/28 11:24] – karllall | en:iot:examples:relay [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 7: | Line 7: | ||
- | Releel on 3 sisendpesa. | + | Relay has 3 input holes. |
{{: | {{: | ||
- | Vajaminevad teegid: | + | Needed libraries: |
< | < | ||
- | Näidiskood näitab kas midagi on ühendatud relee mooduliga: | + | The example code below shows if something is connected to the relay module |
<code c> | <code c> | ||
// Includes global variables and librarys that the relay shield uses | // Includes global variables and librarys that the relay shield uses | ||
Line 24: | Line 24: | ||
#define WIFI_PASSWORD " | #define WIFI_PASSWORD " | ||
- | #define RELAY_PIN 5 // The relay has been connected to pin 5 | + | #define RELAY_PIN 5 // The relay has been connected to pin 5 (D1) |
// If message received switch relay | // If message received switch relay |