This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tiny Forth NXT | |
// based on T. NAKAGAWA's Tiny Forth | |
// added Arduino hardware API and protothreads | |
// 8/2020 | |
#include <EEPROM.h> | |
// protothreads library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer