View circle.cs
public static void Circle(int x0, int y0, int radius, uint c)
{
int x = radius;
int y = 0;
int dx = 1;
int dy = 1;
int err = dx - (radius << 1);
while (x >= y)
{
View pico.cs
// https://github.com/tgsstdio/OpenTK-Demos/blob/master/ComputeDemo/Demo.cs
using System;
using OpenTK.Graphics.OpenGL;
using OpenTK;
using OpenTK.Graphics;
namespace Pico
{
public class Demo
View illness.c
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
#include <glib.h>
#include <mono/metadata/image.h>
#include <mono/metadata/verify.h>
#include <mono/metadata/class.h>
#include <mono/metadata/loader.h>
#include <mono/metadata/object.h>
View led.ino
// based on https://gist.github.com/nrdobie/8193350
#include <SPI.h>
#define LOAD_PIN 7
void setup() {
// Set load pin to output
pinMode(LOAD_PIN, OUTPUT);
View hardware2.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View serial.js
var SerialPort = require('serialport');
var port = new SerialPort('/dev/cu.usbmodem1411', {
baudRate: 9600
});
port.on('open', function() {
console.log("serial port connected")
});
View hardware.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View index.html
<!-- in public folder -->
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0>
<style> body {padding: 0; margin: 0;} </style>
<script src="p5.min.js"></script>
<script src="/socket.io/socket.io.js"></script>
<!-- <script src="../addons/p5.dom.min.js"></script> -->
<!-- <script src="../addons/p5.sound.min.js"></script> -->
View socketio.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View deploying.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.