This is a kernel module, with DT Overlay, to illustrate usage of GPIO subsystem in Linux kernel.
- Raspberry Pi 3 Model B Rev 1.2
- Arduino UNO
| /* | |
| * A simple, non-optimizing brainfuck to C translator. | |
| * 2010-08-31 - Version 1.0 (Cory Burgett) | |
| * | |
| * This code is hereby placed into the public domain. | |
| * | |
| * Originally located at: http://www4.ncsu.edu/~cmburget/brainfucc.c | |
| */ | |
| #include <stdio.h> |
| ELEMENT_TABLE = {'C':12.011, 'O':15.999, 'H':1.008, 'N':14.007, 'Cl':35.45, 'Br':79.904, 'K':39.098, 'S':32.06} | |
| def molar_mass(name, elements=ELEMENT_TABLE): | |
| buf = '' | |
| digit = '' | |
| molar_mass = 0.0 | |
| for i in range(len(name)): | |
| c = name[i] | |
| nxt = '' | |
| if not (i == len(name) - 1): | |
| nxt = name[i + 1] |
| " size of a hard tabstop | |
| set tabstop=4 | |
| " always uses spaces instead of tab characters | |
| set expandtab | |
| " size of an "indent" | |
| set shiftwidth=4 | |
| " recursively find tags |
| # | |
| # Automatically generated file; DO NOT EDIT. | |
| # Buildroot 2019.05-git-00959-gd54b0e22ae Configuration | |
| # | |
| BR2_HAVE_DOT_CONFIG=y | |
| BR2_HOST_GCC_AT_LEAST_4_5=y | |
| BR2_HOST_GCC_AT_LEAST_4_6=y | |
| BR2_HOST_GCC_AT_LEAST_4_7=y | |
| BR2_HOST_GCC_AT_LEAST_4_8=y | |
| BR2_HOST_GCC_AT_LEAST_4_9=y |
| # | |
| # Automatically generated file; DO NOT EDIT. | |
| # Linux/x86_64 5.0.10 Kernel Configuration | |
| # | |
| # | |
| # Compiler: x86_64-buildroot-linux-gnu-gcc.br_real (Buildroot 2019.05-git-00959-gd54b0e22ae) 7.4.0 | |
| # | |
| CONFIG_CC_IS_GCC=y | |
| CONFIG_GCC_VERSION=70400 |
| from scipy import signal | |
| import matplotlib.pyplot as plt | |
| import math | |
| import numpy as np | |
| plt.rc('text', usetex=True) | |
| W_RANGE = np.arange(-4, 6, 0.001).tolist() | |
| W_RANGE = [10**i for i in W_RANGE] | |
| def plot_bode(sys, legend, tittle = ''): | |
| fig, axs = plt.subplots(2, 1, constrained_layout=True) |
| (defun c:LEGO ( / name) | |
| (if (setq name (getstring "Enter component Name (Brick/Plate/round_brick/round_plate)")) | |
| (if (or (eq name "plate") (eq name "P"))(draw_plate) | |
| (if (or (eq name "brick") (eq name "B"))(draw_brick) | |
| (if (or (eq name "round_plate") (eq name "RP"))(draw_round_plate) | |
| (if (or (eq name "round_cone") (eq name "RC"))(draw_round_cone) | |
| (if (or (eq name "round_brick") (eq name "RB"))(draw_round_brick)))))) | |
| );end if | |
| ) |
| #! /bin/bash | |
| # install print history plugin. See | |
| # https://plugins.octoprint.org/plugins/printhistory/ | |
| pip install "https://github.com/imrahil/OctoPrint-PrintHistory/archive/master.zip" | |
| # install print statistics plugin. See | |
| # https://plugins.octoprint.org/plugins/stats/ | |
| pip install "https://github.com/amsbr/OctoPrint-Stats/archive/master.zip" | |
| # install zoomable temperature graph. See |