This file contains hidden or 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
--# Main | |
-- Main | |
function setup() | |
timer = createTimer() | |
scheduler = createScheduler() | |
timer(.5, 0, function(t) print('timer:', t.elapsed) end) | |
timer(1, 1, function(t, ...) print('Hello', ...) end, 'Aaron!') | |
This file contains hidden or 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
--# tparameter | |
-- tparameter | |
-- v1.0.2 | |
local _updateRate = 1/60 | |
local _refreshDelay = 1/60 | |
local _reloadSteps, _reloadStepInterval = 4, 1 | |
local _chooseParam = 'choose_object_to_inspect' | |
local _selectParam = 'SELECT' | |
local _chooseWatchParam = 'object_parameter_inspector' |
This file contains hidden or 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
--# cmodule | |
-- cmodule | |
-- v0.1.1 | |
-- todo: | |
-- * document | |
-- * look for optimizations | |
-- * investigate better ways to handle dependency cycles | |
-- * support exported projects |
This file contains hidden or 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
--# Main | |
-- Main | |
-- tests current as of version 0.1.0 | |
function setup() | |
-- initialize cmodule with the name of this project. | |
-- note the syntactic sugar: when calling a function that | |
-- takes a string literal as it's only argument, the parenthesis |
This file contains hidden or 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
from rainbowio import colorwheel | |
from adafruit_macropad import MacroPad | |
macropad = MacroPad() | |
# We'll show the pixels manually | |
macropad.pixels.auto_write = False | |
# Notes for each key | |
tones = [196, 220, 246, 262, 294, 330, 349, 392, 440, 494, 523, 587] |