Skip to content

Instantly share code, notes, and snippets.

@nkp216
nkp216 / s.py
Last active March 24, 2020 10:16
#!/usr/bin/env python
# -*- coding:UTF-8 -*-
# GladeVcp Widget
# SpeedControl is a widget specially made to control an adjustment
# with a touch screen. It is a replacement to the normal scale widget
# witch is difficult to slide on a touch screen.
#
# Copyright (c) 2016 Norbert Schechner
#
/* sudo halcompile --install memprepare.comp */
component memprepare ;
pin in signed in;
pin out signed out;
pin out signed old;
pin out bit part1;// включает 1-ю часть схемы
pin out bit part2;// включает 2-ю часть схемы
variable signed tmp;
#!/usr/bin/env python
# --*-- coding:utf-8 --*--
#create (large)tooltable Linuxcnc for testing
import random
Tools = 250
toolFileName = "IR500.tbl"
tfile = open(toolFileName, "w")