I2C Relay Board v1.0: I/O Error 121

Hi and good morning. I did get this code from your support via E-Mail from Bill. See the code below. And also, I already mentioned, that it doesn’t matter what code I use, the issue persists always. I also did try the scripts on your github page with the same results. Here is the code I got from Bill:

[code]#!/usr/bin/python
‘’’*****************************************************************************************************************
Seeed Studio Relay Board Example
By John M. Wargo
www.johnwargo.com
********************************************************************************************************************’’’
from future import print_function

import sys
import time

from relay_lib_seeed import *

def process_loop():
# turn all of the relays on
relay_all_on()
# wait a second
time.sleep(1)
# turn all of the relays off
relay_all_off()
# wait a second
time.sleep(1)

# now cycle each relay every second in an infinite loop
while True:
    for i in range(1, 5):
        relay_on(i)
        time.sleep(1)
        relay_off(i)
    relay_all_on()
# wait a second
    time.sleep(1)
# turn all of the relays off
    relay_all_off()
# wait a second
    time.sleep(1)

Now see what we’re supposed to do next

if name == “main”:
try:
process_loop()
except KeyboardInterrupt:
# tell the user what we’re doing…
print("\nExiting application")
# turn off all of the relays
relay_all_off()
# exit the application
sys.exit(0)
[/code]