{"id":89,"date":"2019-10-22T08:37:40","date_gmt":"2019-10-22T08:37:40","guid":{"rendered":"https:\/\/starthardware.org\/en\/?p=89"},"modified":"2019-10-22T08:37:41","modified_gmt":"2019-10-22T08:37:41","slug":"unit-12-the-button-and-the-if-statement","status":"publish","type":"post","link":"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/","title":{"rendered":"Unit 12 \u2013 The Button and the if-Statement"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>This program should switch a LED when a button is pressed and switch off when it is not pressed any more. I suggest, we start with the Blink example code.<\/p><\/blockquote>\n\n\n\n<p>Did you build the circuit of <a href=\"https:\/\/starthardware.org\/en\/2019\/10\/22\/unit-11-arduino-and-the-button\/\">Unit 11<\/a>?<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"800\" src=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-button-if-statement2-1024x800.jpg\" alt=\"Arduino Button if Statement\" class=\"wp-image-85\" srcset=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-button-if-statement2-1024x800.jpg 1024w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-button-if-statement2-300x234.jpg 300w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-button-if-statement2-768x600.jpg 768w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-button-if-statement2.jpg 1346w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Here comes the code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int ledPin = 9;\n\nvoid setup(){\n  pinMode(ledPin,OUTPUT);\n}\n\nvoid loop(){\n  digitalWrite(ledPin, HIGH);\n  delay(200);\n  digitalWrite(ledPin, LOW);\n  delay(200);\n}<\/code><\/pre>\n\n\n\n<p>You already know the program from <a href=\"https:\/\/starthardware.org\/en\/2019\/10\/22\/unit-7-digital-out-your-first-program\/\">Unit 7<\/a>. Now let\u2019s rearrange it.<\/p>\n\n\n\n<p>I suggest to store the pin number where the is connected to in a variable.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>int buttonPin = 11;<\/code><\/pre>\n\n\n\n<p>Now, we have to tell Arduino that we want to use a pin as an input. The command is:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>pinMode(buttonPin,INPUT);<\/code><\/pre>\n\n\n\n<p>You realized it, yes? It is the same command we used for the LED. Just the argument this time is not OUTPUT but INPUT.<\/p>\n\n\n\n<p>To find out whether the button is pushed (HIGH) or not (LOW) we can use this command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>digitalRead(buttonPin);<\/code><\/pre>\n\n\n\n<p>Until now, we just used commands without returning results. This one is doing it. When we use it it returns HIGH or LOW. It is called a return value.<\/p>\n\n\n\n<p>That is a bit hard to get. Imagine, there would be a command (or better a method) which is called sum(a,b). The arguments a and b are two numbers which should be calculated as a sum. The return of our command would be the result of the calculation. To store the result, we use another variable. This looks like that: c = summe (a,b); Now the result is stored in the variable c.<\/p>\n\n\n\n<p>The command digitalRead(buttonPin); returns either HIGH or LOW. But how can we find out what it is? Therefore we are using on of the most important constructions in programming: the if-statement.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The if-Statement<\/h3>\n\n\n\n<p>Using the if-statement we can find out whether a condition is true of false. Let\u2019s assume you have red and blue building bricks and you want to sort by color them into two boxes. How would you do that?<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"541\" src=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/10_16_if-statement_bricks-1024x541.png\" alt=\"Arduino if statement bricks\" class=\"wp-image-90\" srcset=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/10_16_if-statement_bricks-1024x541.png 1024w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/10_16_if-statement_bricks-300x159.png 300w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/10_16_if-statement_bricks-768x406.png 768w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/10_16_if-statement_bricks.png 1126w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Maybe like that:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>take a brick<\/li><li>check if it is red<\/li><li>if it is red put it in box A<\/li><\/ol>\n\n\n\n<p>And this is exactly who to use the if-statement. Easy, isn\u2019t it? This is how to write it. Look to it that we use two equality signs. That is very important.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if (brick==red) {\n  put brick in box A\n}<\/code><\/pre>\n\n\n\n<p>Great. Now we can put all the red bricks into box A. But the blue ones would remain on the floor. How can we put them into box B? A suggestion:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>take a brick<\/li><li>check if it is red<\/li><li>if it is red put it in box A<\/li><li>else put it in box B<\/li><\/ol>\n\n\n\n<p>Great, no? And this is how it is programmed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if (brick==red) {\n put brick in box A\n} else {\n put brick in box B\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"541\" src=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/10_17_if-statement-1024x541.png\" alt=\"Arduino if statement bricks\" class=\"wp-image-91\" srcset=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/10_17_if-statement-1024x541.png 1024w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/10_17_if-statement-300x159.png 300w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/10_17_if-statement-768x406.png 768w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/10_17_if-statement.png 1126w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Did you saw the green brick? It also lands in box B because we are not asking for blue but for&nbsp;<em>not red<\/em>. \ud83d\ude09<\/p>\n\n\n\n<p>But back to our program. This looks like that and need to be changed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int ledPin = 9;\nint buttonPin = 11;\n\nvoid setup(){\n  pinMode(ledPin,OUTPUT);\n  pinMode(buttonPin,INPUT);\n}\n\nvoid loop(){\n  digitalWrite(ledPin, HIGH);\n  delay(200);\n  digitalWrite(ledPin, LOW);\n  delay(200);\n}<\/code><\/pre>\n\n\n\n<p>The if statement for the button asks if the button is HIGH:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if (digitalRead(buttonPin)==HIGH){\n\n}<\/code><\/pre>\n\n\n\n<p>If the button is HIGH the LED should be turned on:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if (digitalRead(buttonPin)==HIGH){\n  digitalWrite(ledPin, HIGH);\n}<\/code><\/pre>\n\n\n\n<p>Otherwise (else) it should be turned off:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if (digitalRead(buttonPin)==HIGH){\n  digitalWrite(ledPin, HIGH);\n} else {\n  digitalWrite(ledPin, LOW);\n}<\/code><\/pre>\n\n\n\n<p>The whole program looks like that:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int ledPin = 9;\nint buttonPin = 11;\n\nvoid setup(){\n  pinMode(ledPin,OUTPUT);\n  pinMode(buttonPin,INPUT);\n}\n\nvoid loop(){\n  if (digitalRead(buttonPin)==HIGH){\n    digitalWrite(ledPin, HIGH);\n  } else {\n    digitalWrite(ledPin, LOW);\n  }\n}<\/code><\/pre>\n\n\n\n<p>Does it work? Super! Now try to change the program in that way that the LED is turns off when the button is pressed. You can find the solution here:<\/p>\n\n\n\n<p>Solution<\/p>\n\n\n\n<p>Of course there are a lot of possible solutions. Here are two:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int ledPin = 9;\nint buttonPin = 11;\n\nvoid setup(){\n  pinMode(ledPin,OUTPUT);\n  pinMode(buttonPin,INPUT);\n}\n\nvoid loop(){\n  if (digitalRead(buttonPin)==LOW){\n    digitalWrite(ledPin, HIGH);\n  } else {\n    digitalWrite(ledPin, LOW);\n  }\n}<\/code><\/pre>\n\n\n\n<p>Or:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int ledPin = 9;\nint buttonPin = 11;\n\nvoid setup(){\n  pinMode(ledPin,OUTPUT);\n  pinMode(buttonPin,INPUT);\n}\n\nvoid loop(){\n  if (digitalRead(buttonPin)==HIGH){\n    digitalWrite(ledPin, LOW);\n  } else {\n    digitalWrite(ledPin, HIGH);\n  }\n}<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>That was not so easy. Great, that you managed it anyway. Now you know the most important things of programming:<strong> variables<\/strong>,\u00a0<strong>loops<\/strong>\u00a0and the\u00a0<strong>if statement<\/strong>. Keep it up! From now on it get\u2019s easier. Promise!<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>This program should switch a LED when a button is pressed and switch off when it is not pressed any more. I suggest, we start with the Blink example code. Did you build the circuit of Unit 11? Here comes the code: You already know the program from Unit 7. Now let\u2019s rearrange it. I&hellip;&nbsp;<a href=\"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Unit 12 \u2013 The Button and the if-Statement<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":92,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Unit 12 \u2013 The Button and the if-Statement - StartHardware - Tutorials for Arduino<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unit 12 \u2013 The Button and the if-Statement - StartHardware - Tutorials for Arduino\" \/>\n<meta property=\"og:description\" content=\"This program should switch a LED when a button is pressed and switch off when it is not pressed any more. I suggest, we start with the Blink example code. Did you build the circuit of Unit 11? Here comes the code: You already know the program from Unit 7. Now let\u2019s rearrange it. I&hellip;&nbsp;Read More &raquo;Unit 12 \u2013 The Button and the if-Statement\" \/>\n<meta property=\"og:url\" content=\"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/\" \/>\n<meta property=\"og:site_name\" content=\"StartHardware - Tutorials for Arduino\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-22T08:37:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-10-22T08:37:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-button-digital-read.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1313\" \/>\n\t<meta property=\"og:image:height\" content=\"739\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stefan Hermann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/starthardware.org\/en\/#website\",\"url\":\"https:\/\/starthardware.org\/en\/\",\"name\":\"StartHardware - Tutorials for Arduino\",\"description\":\"Arduino, Electronics, Fun\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/starthardware.org\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-button-digital-read.jpg\",\"contentUrl\":\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-button-digital-read.jpg\",\"width\":1313,\"height\":739,\"caption\":\"Arduino if statement\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/#webpage\",\"url\":\"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/\",\"name\":\"Unit 12 \u2013 The Button and the if-Statement - StartHardware - Tutorials for Arduino\",\"isPartOf\":{\"@id\":\"https:\/\/starthardware.org\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/#primaryimage\"},\"datePublished\":\"2019-10-22T08:37:40+00:00\",\"dateModified\":\"2019-10-22T08:37:41+00:00\",\"author\":{\"@id\":\"https:\/\/starthardware.org\/en\/#\/schema\/person\/811b16fabcbfeef4210ea79cf0990a59\"},\"breadcrumb\":{\"@id\":\"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/starthardware.org\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Unit 12 \u2013 The Button and the if-Statement\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/starthardware.org\/en\/#\/schema\/person\/811b16fabcbfeef4210ea79cf0990a59\",\"name\":\"Stefan Hermann\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/starthardware.org\/en\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5b5a74ee1d07024fd1eff9b1f7137108089169010a93afaee907b9325ee579a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5b5a74ee1d07024fd1eff9b1f7137108089169010a93afaee907b9325ee579a6?s=96&d=mm&r=g\",\"caption\":\"Stefan Hermann\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Unit 12 \u2013 The Button and the if-Statement - StartHardware - Tutorials for Arduino","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/","og_locale":"en_US","og_type":"article","og_title":"Unit 12 \u2013 The Button and the if-Statement - StartHardware - Tutorials for Arduino","og_description":"This program should switch a LED when a button is pressed and switch off when it is not pressed any more. I suggest, we start with the Blink example code. Did you build the circuit of Unit 11? Here comes the code: You already know the program from Unit 7. Now let\u2019s rearrange it. I&hellip;&nbsp;Read More &raquo;Unit 12 \u2013 The Button and the if-Statement","og_url":"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/","og_site_name":"StartHardware - Tutorials for Arduino","article_published_time":"2019-10-22T08:37:40+00:00","article_modified_time":"2019-10-22T08:37:41+00:00","og_image":[{"width":1313,"height":739,"url":"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-button-digital-read.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Stefan Hermann","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/starthardware.org\/en\/#website","url":"https:\/\/starthardware.org\/en\/","name":"StartHardware - Tutorials for Arduino","description":"Arduino, Electronics, Fun","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/starthardware.org\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/#primaryimage","inLanguage":"en-US","url":"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-button-digital-read.jpg","contentUrl":"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-button-digital-read.jpg","width":1313,"height":739,"caption":"Arduino if statement"},{"@type":"WebPage","@id":"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/#webpage","url":"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/","name":"Unit 12 \u2013 The Button and the if-Statement - StartHardware - Tutorials for Arduino","isPartOf":{"@id":"https:\/\/starthardware.org\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/#primaryimage"},"datePublished":"2019-10-22T08:37:40+00:00","dateModified":"2019-10-22T08:37:41+00:00","author":{"@id":"https:\/\/starthardware.org\/en\/#\/schema\/person\/811b16fabcbfeef4210ea79cf0990a59"},"breadcrumb":{"@id":"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/starthardware.org\/en\/unit-12-the-button-and-the-if-statement\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/starthardware.org\/en\/"},{"@type":"ListItem","position":2,"name":"Unit 12 \u2013 The Button and the if-Statement"}]},{"@type":"Person","@id":"https:\/\/starthardware.org\/en\/#\/schema\/person\/811b16fabcbfeef4210ea79cf0990a59","name":"Stefan Hermann","image":{"@type":"ImageObject","@id":"https:\/\/starthardware.org\/en\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/5b5a74ee1d07024fd1eff9b1f7137108089169010a93afaee907b9325ee579a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5b5a74ee1d07024fd1eff9b1f7137108089169010a93afaee907b9325ee579a6?s=96&d=mm&r=g","caption":"Stefan Hermann"}}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":1,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":93,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/posts\/89\/revisions\/93"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/media\/92"}],"wp:attachment":[{"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}