Skip to content

Instantly share code, notes, and snippets.

View achayan's full-sized avatar

Kurian Onnunny Samuel achayan

View GitHub Profile
@achayan
achayan / Simple_MayaDockingClass.py
Created April 18, 2018 19:25 — forked from liorbenhorin/Simple_MayaDockingClass.py
Simple way to Docking Qt widgets to Maya 2017+
'''
Template class for docking a Qt widget to maya 2017+.
Author: Lior ben horin
12-1-2017
'''
import weakref
import maya.cmds as cmds
import maya.OpenMayaUI as omui
/*
Sketch which publishes temperature data from a DS1820 sensor to a MQTT topic.
This sketch goes in deep sleep mode once the temperature has been sent to the MQTT
topic and wakes up periodically (configure SLEEP_DELAY_IN_SECONDS accordingly).
Hookup guide:
- connect D0 pin to RST pin in order to enable the ESP8266 to wake up periodically
- DS18B20:
+ connect VCC (3.3V) to the appropriate DS18B20 pin (VDD)