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 argparse | |
import serial | |
from serial.serialposix import Serial | |
import sys | |
import os | |
#print('port=' + str(args.port)) | |
CMD_ADDR = 0 | |
CMD_LEN = 1 |
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 <Adafruit_NeoPixel.h> | |
#include <Wire.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
//ADXL345設定 | |
#define ADXL345 (0x1D) //address of Accelerometer 秋月製のモジュールは0x53に直す | |
#define ADXL345_X (0x32) //register for X value from Accelerometer | |
#define ADXL345_Y (0x34) //register for Y value from Accelerometer |
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
# -*- coding:utf-8 -*- | |
from PIL import Image | |
# 修正したい画像の読み込み | |
img = Image.open('元画像.png') | |
width = img.size[0] | |
height = img.size[1] | |
for x in range(width): |
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
, | |
[>+>+<<-]>>[<<+>>-]< | |
>++++++[<-------->-] | |
>+++++++[<+++++++>-] | |
<<[->> | |
++++++++[>++++++++<-]>+++. | |
<++++++[>+++++<-]>. | |
<++++++[>+++<-]>. | |
<++[>-------<-]>. | |
<+++++++[>----------<-]>+. |
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
/*要・controlP5ですを*/ | |
import controlP5.*; | |
ControlP5 cp5; | |
float sliderValue = 1; //空間周波数スライダー用 | |
float sliderspeed = 1; //速度スライダー用 | |
float rad; | |
float dispdeg; | |
float speed = 0; |