Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:iot:examples:relay [2023/01/28 11:24] karllallen:iot:examples:relay [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 7: Line 7:
  
  
-Releel on sisendpesa.+Relay has input holes.
  
 {{:en:iot:examples:relaypicture3.jpg?200|}} {{:en:iot:examples:relaypicture3.jpg?200|}}
  
-Vajaminevad teegid:+Needed libraries:
 <code>lib_deps = ITTIoT</code> <code>lib_deps = ITTIoT</code>
  
-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 "password" #define WIFI_PASSWORD "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
en/iot/examples/relay.1674905041.txt.gz · Last modified: 2023/01/28 10:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0