This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| public class AdditionUnderXOR { | |
| static final int SS = 1000000; | |
| enum Ore { | |
| COAL(60005), | |
| IRON(60006), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Needed modules will be imported and configured | |
| import RPi.GPIO as GPIO | |
| import time | |
| GPIO.setmode(GPIO.BCM) | |
| # Declaration of the input pin which is connected with the sensor | |
| GPIO_PIN = 18 | |
| GPIO.setup(GPIO_PIN, GPIO.IN, pull_up_down = GPIO.PUD_UP) |