Skip to content

Instantly share code, notes, and snippets.

@circuit4u-medium
circuit4u-medium / 555_piano.ijs
Created November 16, 2019 20:35
J-lang (jsoftware) code to calculate resistor values for 555 timer IC
load 'plot'
[ scale =: +/\ 0 2 2 1 2 2 2 1
[ freq_factor =: 2^ scale % 12
[ ff =: 698.456 % freq_factor NB.go down scale from F5
[ r5 =: (% 698.456 * 1.4 * 100e_9)
@circuit4u-medium
circuit4u-medium / ns_open.ijs
Created December 14, 2019 14:09
J code to read NEV and NS5 file
require 'jmf'
require 'plot'
NB. turn bytes into unsigned ints (little endian)
touint =: 256 #. a. i. |.
NB. turn bytes into signed ints
toint2 =: _1 & ic
toint4 =: _2 & ic
@circuit4u-medium
circuit4u-medium / tiny_forth_nxt.ino
Last active August 28, 2020 13:38
extend Tiny forth (http://middleriver.chagasi.com/electronics/tforth.html) with Arduino hardware primitives
// Tiny Forth NXT
// based on T. NAKAGAWA's Tiny Forth
// added Arduino hardware API and protothreads
// 8/2020
#include <EEPROM.h>
// protothreads library
@circuit4u-medium
circuit4u-medium / chess_clock.ino
Created August 28, 2020 13:58
Tiny Forth NXT implementing a chess clock
// Tiny Forth NXT
// based on T. NAKAGAWA's Tiny Forth
// added Arduino hardware API and protothreads
// 8/2020
#include <EEPROM.h>
#include "TM1637.h"
#define CLK 16//pins definitions for TM1637 and can be changed to other ports
@circuit4u-medium
circuit4u-medium / FT223H_TM1637.ipynb
Created October 11, 2020 12:39
FT232H and TM1637
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@circuit4u-medium
circuit4u-medium / FT2232H_I2C_SHT21.ipynb
Last active October 13, 2020 14:00
FT2232 with SHT21
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@circuit4u-medium
circuit4u-medium / FT2232H_neopixel.ipynb
Last active October 13, 2020 13:59
FT2232H and NeoPixel
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@circuit4u-medium
circuit4u-medium / FT232H_TC1.ipynb
Created October 26, 2020 19:31
FT232H with MAX31855 thermocouple read
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@circuit4u-medium
circuit4u-medium / FT232H_MCP3204.ipynb
Last active October 28, 2020 18:04
FT232H with MCP3204
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@circuit4u-medium
circuit4u-medium / FT232H_MCP3201.ipynb
Created October 28, 2020 18:26
FT232H with MCP3201
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.