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
| /* | |
| OSC Test -- for M5Atom | |
| config: | |
| Waiting PORT 5005 | |
| OSC Command | |
| /msg MSG to serialport | |
| /clean clear LED | |
| /led , LED_POS,R,G,B |
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
| #define FASTLED_INTERNAL | |
| #include <Arduino.h> | |
| #include <WiFi.h> | |
| #include <HttpClient.h> | |
| #include <FastLED.h> | |
| #include <ArduinoJson.h> | |
| const int NUM_LEDS = 1; | |
| const int LED_PIN = 27; |
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
| using UnityEngine; | |
| using System.Collections; | |
| public class GameDataStorageScript : MonoBehaviour { | |
| private static bool created = false; | |
| int score = 0; | |
| void Awake(){ | |
| if(!created){ | |
| // シーンを切り替えても指定のオブジェクトを破棄せずに残す |
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
| # -*- coding: utf-8 -*- | |
| require 'RMagick' | |
| include Magick | |
| arr = [] | |
| embedded = ImageList.new('embedded.png') | |
| (0...embedded.rows).each {|y| | |
| (0...embedded.columns).each {|x| | |
| pixel = embedded.pixel_color(x, y) | |
| arr << (((pixel.red & 0x07) << 5) | |