Skip to content

Instantly share code, notes, and snippets.

View stephanschulz's full-sized avatar

Stephan Schulz stephanschulz

View GitHub Profile
// Test program for the PEmbroider library for Processing:
// Making a multi-color embroidery based on imdividualy colored pngs
import processing.embroider.*;
PEmbroiderGraphics E;
void setup() {
noLoop();
size (1400, 1400);
float cx = width/2;
pi@raspberrypi:~/openFrameworks/examples/gui/guiExample $ cd ..
pi@raspberrypi:~/openFrameworks/examples/gui $ cd guiExample_macOS
pi@raspberrypi:~/openFrameworks/examples/gui/guiExample_macOS $ make
VER ID IS 10
using newer build and GLFW window
Compiling OF library for Release
make[1]: Entering directory '/home/pi/openFrameworks/libs/openFrameworksCompiled/project'
VER ID IS 10
using newer build and GLFW window
VER ID IS 10
Stephan-2:guiExample stephanschulz$ make PLATFORM_ARCH=armv6l Release -j4
HOST_OS=Darwin
VER ID IS 0
using legacy build
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio gtk+-3.0 libmpg123
with PKG_CONFIG_LIBDIR=/Volumes/xtools-build-env/rpi-root/usr/lib/pkgconfig:/Volumes/xtools-build-env/rpi-root/usr/lib/arm-linux-gnueabihf/pkgconfig:/Volumes/xtools-build-env/rpi-root/usr/share/pkgconfig
Compiling OF library for Release
HOST_OS=Darwin
VER ID IS 0
using legacy build
Stephan-2:guiExample stephanschulz$ make Release PLATFORM_ARCH=armv6l PLATFORM_VARIANT=default -j1
HOST_OS=Darwin
VER ID IS 0
using legacy build
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio gtk+-3.0 libmpg123
with PKG_CONFIG_LIBDIR=/Volumes/xtools-build-env/rpi-root/usr/lib/pkgconfig:/Volumes/xtools-build-env/rpi-root/usr/lib/arm-unknown-linux-gnueabihf/pkgconfig:/Volumes/xtools-build-env/rpi-root/usr/share/pkgconfig
Compiling OF library for Release
HOST_OS=Darwin
VER ID IS 0
using legacy build
Last login: Sun Dec 29 08:28:08 on ttys003
You have mail.
Stephan-2:~ stephanschulz$ cd /Applications/of_v0.10.1_osx_release/examples/gui/guiExample
Stephan-2:guiExample stephanschulz$ make Release PLATFORM_ARCH=armv6l PLATFORM_VARIANT=default -j1 MAKEFILE_DEBUG=1
HOST_OS=Darwin
=================== config.mk platform detection ================
PLATFORM_ARCH=armv6l
PLATFORM_OS=Linux
PLATFORM_VARIANT=default
PLATFORM_LIB_SUBPATH=linuxarmv6l
Last login: Sat Dec 28 21:18:20 on ttys000
You have mail.
Stephan-2:~ stephanschulz$ cd /Applications/of_v0.10.1_osx_release/examples/gui/guiExample
Stephan-2:guiExample stephanschulz$ make PLATFORM_ARCH=armv6l Release -j4
HOST_OS=Darwin
detected cross compiling 1
PLATFORM_CXX /Volumes/xtools-build-env/arm-unknown-linux-gnueabihf/bin/arm-unknown-linux-gnueabihf-g++
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio gtk+-3.0 libmpg123
with PKG_CONFIG_LIBDIR=/Volumes/xtools-build-env/rpi-root/usr/lib/pkgconfig:/Volumes/xtools-build-env/rpi-root/usr/lib/arm-unknown-linux-gnueabihf/pkgconfig:/Volumes/xtools-build-env/rpi-root/usr/share/pkgconfig
Compiling OF library for Release
Stephan-2:~ stephanschulz$ cd /Applications/of_v0.10.1_osx_release/examples/gui/guiExample
Stephan-2:guiExample stephanschulz$ make PLATFORM_ARCH=armv6l Release -j4
HOST_OS=Darwin
detected cross compiling 1
PLATFORM_CXX /Volumes/xtools-build-env/arm-unknown-linux-gnueabihf/bin/arm-unknown-linux-gnueabihf-g++
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio gtk+-3.0 libmpg123
with PKG_CONFIG_LIBDIR=/Volumes/xtools-build-env/rpi-root/usr/lib/pkgconfig:/Volumes/xtools-build-env/rpi-root/usr/lib/arm-linux-gnueabihf/pkgconfig:/Volumes/xtools-build-env/rpi-root/usr/share/pkgconfig
Compiling OF library for Release
HOST_OS=Darwin
detected cross compiling 1
fcc 243 : 11110011
scc 160 : 10100000
comb 62368 : 1111001110100000
shif 15592 : 11110011101000 angle 685.20 subt 325.28
mask 3304 : 110011101000 angle 290.39
fcc 243 : 11110011
scc 128 : 10000000
comb 62336 : 1111001110000000
shif 15584 : 11110011100000 angle 684.84 subt 324.93
void makeTransfer()
{
digitalWrite(CS_PIN, LOW);
digitalWriteFast(SCK_PIN, LOW); // Set CLK line LOW (to inform encoder -> latch data)
delayMicroseconds(1); // Running above 500kHz perform Delay First Clock function
SPI.begin();
void makeTransfer()
{
digitalWrite(CS_PIN, LOW);
digitalWriteFast(SCK_PIN, LOW); // Set CLK line LOW (to inform encoder -> latch data)
delayMicroseconds(1); // Running above 500kHz perform Delay First Clock function