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
var task_counter = 0; | |
task = function() { | |
return { | |
add: function(numberToAdd) { | |
if (numberToAdd < 10) { | |
task_counter = task_counter + numberToAdd; | |
} | |
else { |
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
## Each script defined in its own file. This is a generic example script. | |
class ExampleScript: | |
def __init__(self, name: str): | |
self.name = name | |
def run(self): | |
while True: | |
print("Running {}".format(self.name)) | |
sleep_ms(500) |
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
#include <stdio.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include "pico/stdlib.h" | |
#include "pico/time.h" | |
#include "hardware/adc.h" | |
#include "hardware/gpio.h" | |
#include "hardware/i2c.h" | |
#include "hardware/pwm.h" |
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
package main | |
import ( | |
"log" | |
"machine" | |
"math" | |
"time" | |
) | |
const ( |
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
package main | |
import ( | |
"log" | |
"machine" | |
"math" | |
"time" | |
"tinygo.org/x/drivers/tone" | |
) |
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
// Install the "AVR Standard C Time Libaray", used for faster PWM frequencies | |
// and smoother analog cv output. | |
#include <avr/io.h> | |
// GPIO Pin mapping for knobs and jacks. | |
#define P1 0 // Probability | |
#define P2 1 // Sequence step length | |
#define P3 3 // Amplitiude | |
#define P4 5 // Refrain count |
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
/** | |
* @file multi_mode_eg.ino | |
* @author Adam Wonak (https://github.com/awonak/) | |
* @author Hagiwo (https://note.com/solder_state/n/n69643b792274) | |
* @brief Multi-mode Envelope Generator firmware for HAGIWO Sync Mod LFO (demo: TODO) | |
* @version 0.2 | |
* @date 2023-04-19 | |
* | |
* @copyright Copyright (c) 2023 | |
* |