Skip to content

Instantly share code, notes, and snippets.

import bpy
import os
import glob
# Run with
# /Applications/Blender.app/Contents/MacOS/Blender --background --python ~/Desktop/stl2dae.py
if __name__ == '__main__':
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from pyluos import Robot
robot = Robot('/dev/cu.usbserial-14310')
button = robot.btn_gpios.p8
potentiometer = robot.btn_gpios.p9
blue_led = robot.led_gpios.p2
green_led = robot.led_gpios.p3
red_led = robot.led_gpios.p4
from pyluos import Robot
robot = Robot('/dev/cu.usbserial-14310')
button = robot.btn_gpios.p8
blue_led = robot.led_gpios.p2
while True:
if button.is_high():
from itertools import cycle
from time import sleep
from pyluos import Robot
freq = 2.0
if __name__ == '__main__':
r = Robot('/dev/cu.usbserial-14310')
import bpy
import json
from bpy.types import PropertyGroup
from bpy.props import (BoolProperty,
IntProperty,
StringProperty,
PointerProperty)
(function() {
const defaultHost = 'poppy.local:8080';
const defaultScheme = 'http';
const defaultMotorFlexibility = 'compliant';
const defaultMotorPosition = 0;
const defaultMovementDuration = 2;
const noop = function() {};
const wsHost = 'ws://127.0.0.1:9009';
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.