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
export class Thing { | |
constructor(x=0, y=0) { | |
this.x = x; | |
this.y = y; | |
} | |
render() { | |
circle(this.x, this.y, 50, 50); | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>TITLE</title> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/fontawesome.min.css" rel="stylesheet"> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/solid.min.css" rel="stylesheet"> | |
<style type="text/css"> | |
#player { |
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 <Wire.h> | |
#include "Adafruit_MPR121.h" | |
Adafruit_MPR121 cap = Adafruit_MPR121(); | |
// Keeps track of the last pins touched | |
// so we know when buttons are 'released' | |
uint16_t lasttouched = 0; | |
uint16_t currtouched = 0; |
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
const int ECHO_PIN = 6; | |
const int TRIG_PIN = 5; | |
long duration; | |
int distance; | |
void setup() { | |
pinMode(TRIG_PIN, OUTPUT); | |
pinMode(ECHO_PIN, INPUT); | |
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
import React, {useEffect} from "react"; | |
import { Helmet } from "react-helmet"; | |
import "./styles.css"; | |
import { | |
p0, | |
p1, | |
p2, | |
p3, | |
audioHeading, |
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
import React, { useState } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { | |
container, | |
cap, | |
fullHeight, | |
} from './style.module.css'; | |
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
const int POT_PIN = A0; | |
// include SPI, MP3 and SD libraries | |
#include <SPI.h> | |
#include <SD.h> | |
#include <Adafruit_VS1053.h> | |
#define Reset -1 | |
//These are pins used | |
#define CS 6//chip select |
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
int tempo = 250; // just the delay in milliseconds at the end of loop | |
const int LED_PIN_1 = 12; | |
const int LED_PIN_2 = 11; | |
const int LED_PIN_3 = 10; | |
unsigned long counter = 0; | |
int measure = 4; | |
int sequence1[] = { |
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
int tempo = 250; // just the delay in milliseconds at the end of loop | |
int tracks = 3; | |
int trackPins[] = { | |
12, 11, 10 | |
}; | |
int measure = 4; | |
int sequences[][4] = { | |
{ 1, 0, 1, 0 }, | |
{ 1, 0, 0, 0 }, |
NewerOlder