Skip to content

Instantly share code, notes, and snippets.

View WasabiFan's full-sized avatar

Kaelin Laundry WasabiFan

View GitHub Profile
<...repetitious stuff omitted>
-do-compile:
[mkdir] Created dir: /home/wasabi/sfxlib/build/empty
[mkdir] Created dir: /home/wasabi/sfxlib/build/generated-sources/ap-source-output
[javac] Compiling 80 source files to /home/wasabi/sfxlib/build/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] Note: control annotation found in dashfx.controls.ArrayLister with value 'Array View'
[javac] Note: control annotation found in dashfx.controls.BadSliderControl with value 'Raw Slider'
[javac] Note: control annotation found in dashfx.controls.CameraView with value 'Camera'
robot@ev3dev:~/blockly$ tree
.
├── blockly_compressed.js
├── blocks_compressed.js
├── msg
│   └── js
│   └── en.js
├── python_compressed.js
└── server
├── index.html
@WasabiFan
WasabiFan / AltimeterFuncs.ino
Last active May 16, 2016 17:12
Control logic for aerial release wireless trigger.
#if ROLE == ROLE_SKY
// returns smoothed uncalibrated altitude
float getAltitude() {
if (!bmpConnected) {
return -1;
}
sensors_event_t event;
bmp.getEvent(&event);
@WasabiFan
WasabiFan / ev3dev-button-demo.js
Created July 12, 2016 21:46
Demo of parsing ev3dev button events from Linux input subsystem in JavaScript
var fs = require('fs');
var EV_KEY = 0x01;
var buttonEventFile = '/dev/input/by-path/platform-gpio-keys.0-event';
// Hard-coded button values for EV3
var buttonNames = {
103: 'up',
108: 'down',
105: 'left',
@WasabiFan
WasabiFan / capture-docs-screenshot.py
Last active September 28, 2016 04:10
A script to capture a screenshot from the framebuffer (using fbgrab) and recolor white pixels to look like the display on the LEGO MINDSTORMS EV3.
#!/usr/bin/env python3
# Import system utilities
import sys
from subprocess import call
# Import imaging library to resize and recolor the screenshot
from PIL import Image
# Choose the name for the screenshot to save. It defaults to "screenshot.png",
# but you can supply a custom name as a command-line argument.
@WasabiFan
WasabiFan / pillow testbed.ipynb
Created November 18, 2016 20:28 — forked from anonymous/pillow testbed.ipynb
pillow testbed
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
10/07 22:44:57,456 DEBUG [547996692496] (frame-archive.h:147) CallbackFinished,Depth,3060,DispatchedAt,1562823897432.103027
10/07 22:44:57,456 DEBUG [547996692496] (frame-archive.h:154) Frame Callback [Depth#3060] overdue. (Duration: 67.820068ms, FPS: 30, Max Duration: 32ms)
10/07 22:44:57,456 DEBUG [547996692496] (frame-archive.h:147) CallbackFinished,Color,3071,DispatchedAt,1562823897456.389893
10/07 22:44:57,456 DEBUG [547996692496] (frame-archive.h:154) Frame Callback [Color#3071] overdue. (Duration: 83.051025ms, FPS: 30, Max Duration: 32ms)
10/07 22:44:57,456 DEBUG [547996692496] (frame-archive.h:147) CallbackFinished,Depth,0,DispatchedAt,1562823897456.441895
10/07 22:44:57,456 DEBUG [547996692496] (frame-archive.h:154) Frame Callback [Depth#0] overdue. (Duration: 1562823897456.441895ms, FPS: 30, Max Duration: 32ms)
10/07 22:44:57,456 DEBUG [547822711232] (sync.cpp:530) (TS: I Depth I Infrared I Infrared I Color )Depth 3062 1562823897430.415039 fps 29 gap 34.482758 next_expected: 1562823897464.897