Pure radiance or how to use a Fork to light an LED

In this article, we will show Fork's abilities when working with LEDs. Thank you Anirudha Gaikwad(_ro.box_) for creating an interesting project
Here's how you can quickly set-up your Fork in 1 minute.

Fork is a test fixture device developed by @forktestlab,
It can be used as a node between your test devices and user providing a simple and reliable approach that doesn't necessarily require any programming.
You can toggle Digital pins, get analog data and everything else Directly over Ethernet or Wifi.
Second video demonstrates how you can program "Fork" over Ethernet and run a simple blink code written in python using the Fork-API.

The setup :
Python 3.8, Spyder IDE used,
Fork connected to Internet via Ethernet cable.
Pin DO-zero pulled up, and toggled every second.
# -*- coding: utf-8 -*-
Created on Sun May  9 20:37:42 2021
@author: Anirudha Gaikwad
import time
from forkapi.fork import Fork

myFork = Fork('')

time_unit = 0.2
value_dash = 3*time_unit
value_idle = 1*time_unit
value_space = 3*time_unit
value_words = 7*time_unit

def morse(txt):
    encrypt = {'A':'.-', 'B':'-...', 'C':'-.-.',
               'D':'-..', 'E':'.', 'F':'..-.',
               'G':'--.', 'H':'....', 'I':'..',
               'J':'.---', 'K':'-.-', 'L':'.-..',
               'M':'--', 'N':'-.', 'O':'---',
               'P':'.--.', 'Q':'--.-', 'R':'.-.',
               'S':'...', 'T':'-', 'U':'..-',
               'V':'...-', 'W':'.--', 'X':'-..-',
               'Y':'-.--', 'Z':'--..', ' ':'.....'}
    decrypt = {v: k for k, v in encrypt.items()}

    if '-' in txt:
        return ''.join(decrypt[i] for i in txt.split())
    return ' '.join(encrypt[i] for i in txt.upper())

def convert_morse_to_LED(morse_code):
    for i in range(len(morse_code)):
        print(morse_code[i],end ="")
        if(morse_code[i] == '.'):

            status = myFork.aoSet(0,10)
            status = myFork.aoSet(0,0)
        elif(morse_code[i] == '-'):
                status = myFork.aoSet(0,10)
                status = myFork.aoSet(0,0)

def Relay_init():
    status = myFork.aoSet(1,10)
        return "Relay init successful"
        return "Relay init unsuccessful"

while True:

    morse_value = morse("Hello World")
  #  convert_morse_to_LED(morse_value)
    ##status = myFork.aoSet(0,0)
   # time.sleep(value_idle)
Examples of testing on the Fork
Subscribe news
© All Rights Reserved, 2021 Privacy policy forktestlab@gmail.com
Click to order
Your order
Step #1:Leave contact details for delivery and feedback. Step #2: After adding your contacts, you will automatically be taken to the Paypal payment window, where you can pay for the board and delivery in two clicks.
Your Name
Your Email
Your Phone
On the same day, we will contact you to clarify the delivery details and specify the board configuration. Delivery from 7 to 30 days, depending on the recipient's address.
Privacy policy
This privacy policy describes how and when we collect, use, and share information when you provide your personal information(name, phone number, email address) on the site forktestlab.com or related sites and services.
This privacy policy does not apply to the actions of third parties that we do not own or control. You can refer to Artes Electronics privacy policy to learn more about its privacy practices.

Information we collect

In order to complete your order or contact you to discuss a partnership, you must provide us with certain information, such as your name, email address, phone number(in some cases, postal address, payment information, and details of the product you are ordering). You can also provide us with additional personal information (for example, for an individual order) if you contact us directly.

Why we need your information and how we use it

We rely on a number of legal grounds to collect, use, and share your information, including:
as necessary to provide our services, such as when we use your information to fulfill your order, resolve disputes, or provide customer support;
when you have given your affirmative consent, which you can revoke at any time, for example by subscribing to our mailing list.

Information sharing and disclosure

Information about our customers is important to our business, so we do not share this information with third parties. Otherwise, it is possible only after receiving your personal consent.

Data storage

We only store your personal information for as long as it is necessary to provide our services and as described in this privacy policy. However, we may also be required to store this information in accordance with our legal and regulatory obligations, resolve disputes, and enforce our agreements. Maximum period of storage of your data: 5 years.

Transfer of personal information outside the EU

We may store and process your information through third-party hosting services in the United States and other jurisdictions. As a result, we may transfer your personal information to a jurisdiction with different data protection and government oversight laws than your jurisdiction. If we are deemed to be transferring information about you outside the EU, we rely on Privacy Shield as the legal basis for the transfer.

Your right

If you live in certain territories, including the EU, you have a number of rights with respect to your personal information. While some of these rights apply in General, some rights only apply in certain limited cases. We describe these rights below:
Access. You may have the right to access and obtain a copy of the personal information we hold about you by contacting us using the contact information below.
Edit, restrict, delete. You also have the right to change, restrict or delete your personal information. No exceptional circumstances (for example, when we are required to store data for legal reasons) We will generally delete your personal information upon request.
An object. You may object to the processing of some of your data based on our legitimate interests and the receipt of marketing messages from us after you have provided your explicit consent to receive them(providing mail is such consent). In such cases, we will delete your personal information if we do not have a valid and legitimate reason to continue using this information or if it is necessary for legal reasons.

How to contact us

For the purposes of EU data protection law, we, Artes Electronics, are the data controller of your personal information. If you have any questions or concerns, you can contact us at info@arteselectronics.com. In addition, you can send us an mail at: office 17, 50A Tambovskaya str., Saint Petersburg, 192007, Russia
Fork+Power hub+Delivery
Total price with delivery - 127$
Power hub+Delivery
Total price with delivery - 77$
Total price with delivery - 86$