print("--- octopusLAB: test_rgb ---") print("-> pinout | io_config") from utils.pinout import set_pinout pinout = set_pinout() from utils.io_config import get_from_file io_conf = get_from_file() print("-> init") from components.rgb import Rgb ws = Rgb(pinout.WS_LED_PIN, io_conf.get('ws')) print("-> blink()") ws.simpleTest() print("-" * 30)
# Copyright (c) 2016-2021 Jan Copak, Petr Kracik, Vasek Chalupnicek __version__ = "1.0.11" # from sys import modules from time import sleep, sleep_ms, ticks_ms, ticks_diff from machine import Pin, Timer #from os import urandom from utils.pinout import set_pinout from utils.io_config import get_from_file from shell.terminal import printTitle, printLog, printHead from utils.octopus_lib import getFree # olab = Env() # for initialized equipment pinout = set_pinout() # set board pinout io_conf = get_from_file() # read configuration for peripherals class Env: # for temporary global variables and config setup from ubinascii import hexlify from machine import unique_id, freq ver = "1.09" # version - log: num = ver*100 verDat = "10.08.2021 #730" debug = True logDev = True autoInit = True autoTest = False uID = hexlify(unique_id()).decode() MAC = "..." freq = freq() TW = 50 # terminal width