<jupyter_start><jupyter_text><jupyter_code># Load libraries
import RPi.GPIO as GPIO
import time
# set GPIO and output pin
GPIO.setmode(GPIO.BCM)
PIN = 18
GPIO.setup(PIN, GPIO.OUT, pull_up_down=GPIO.PUD_DOWN)
# Close relay (> closing the circuit > current starts to flow)
GPIO.output(PIN, GPIO.HIGH)
# Open relay
GPIO.output(PIN, GPIO.LOW)
# Activate and deactivate the relay 10 times in a row
for i in range(10):
    GPIO.output(PIN, GPIO.HIGH)
    time.sleep(0.2)
    GPIO.output(PIN, GPIO.LOW)
    time.sleep(0.3)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11743119266055047, 'fraction_numerical': 0.01834862385321101, 'mean_word_length': 4.6875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '587410', 'license': 'CC0-1.0', 'n_tokens_mistral': 207, 'n_tokens_neox': 201, 'n_words': 55, 'path': 'notebooks/en-gb/Output - Relay.ipynb', 'repo_name': 'RaspberryJamBe/IPythonNotebooks', 'size': '545'}