#simple step for enable UART3 H3 allwinner sunxi
download suite sunxi:
git clone https://github.com/linux-sunxi/sunxi-tools
compile:
make
convert /boot/script.bin in .fex ascii file for editing:
./bin2fex /boot/script.bin ~script.fex
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 <unistd.h> | |
#include <fcntl.h> | |
#include <sys/ioctl.h> | |
#include <linux/i2c-dev.h> | |
class i2cReadWrite { | |
public: | |
int file_i2c; | |
unsigned char buffer[60]; | |
int length=2; |
#A small guide to compile openFrameworks armv7 with driver OpenGL ES / ES2 sunxi for H3 / Mali GPU on ARMBIAN OS, compatible with orangepi and bananapi.
tested on: orangepi one banana pi M2
dependencies:
apt-get install libx11-dev libxext-dev xutils-dev libdrm-dev \
x11proto-xf86dri-dev libxfixes-dev x11proto-dri2-dev xserver-xorg-dev \
build-essential automake pkg-config libtool ca-certificates git cmake subversion
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
/* | |
Author: Dario Longobardi | |
Test ssh brute force multithreading | |
*/ | |
#include <iostream> | |
#include <unistd.h> | |
#include <thread> | |
#include <vector> |
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 "ofMain.h" | |
#include "ofAppNoWindow.h" | |
#include "ofxGPIO.h" | |
class HC_SR04{ | |
public: | |
HC_SR04(); | |
~HC_SR04(); | |
long micros() { |
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
/* | |
Rewritten Code by Keijiro Takahashi | |
source: | |
https://github.com/keijiro/sketches2016/blob/master/Moblur/Moblur.pde | |
*/ | |
#include "ofMain.h" |
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
int analog0 = A0; | |
int analog1 = A1; | |
void setup() | |
{ | |
Serial.begin(9600); | |
} | |
void loop() | |
{ |
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
/work/kashim/android/ndk/android-ndk-r15c/sources/cxx-stl/llvm-libc++/include/memory:2157: error: undefined reference to 'ofxAndroidVideoGrabber::ofxAndroidVideoGrabber()' | |
/work/kashim/android/ndk/android-ndk-r15c/sources/cxx-stl/llvm-libc++/include/memory:2044: error: undefined reference to 'ofxAndroidVideoGrabber::~ofxAndroidVideoGrabber()' | |
/media/disk-backup/openframeworks/of_v0.10.0RC4_android_release/libs/openFrameworks/gl/ofFbo.cpp:299: error: undefined reference to 'ofxAndroidEvents()' | |
/media/disk-backup/openframeworks/of_v0.10.0RC4_android_release/libs/openFrameworks/gl/ofFbo.cpp:336: error: undefined reference to 'ofxAndroidEvents()' | |
/media/disk-backup/openframeworks/of_v0.10.0RC4_android_release/libs/openFrameworks/gl/ofFbo.cpp:451: error: undefined reference to 'ofxAndroidEvents()' | |
/media/disk-backup/openframeworks/of_v0.10.0RC4_android_release/libs/openFrameworks/gl/ofFbo.cpp:357: error: undefined reference to 'ofxAndroidEvents()' | |
/work/kashim/android/ndk/android-ndk-r15c/sources/cxx-stl/llvm-libc |
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
meta: | |
ADDON_NAME = ofxDlib | |
ADDON_DESCRIPTION = An openFrameworks wrapper for dlib. | |
ADDON_AUTHOR = Christopher Baker | |
ADDON_TAGS = "computer vision" "machine learning" "deep learning" | |
ADDON_URL = http://github.com/bakercp/ofxDlib | |
common: | |
ADDON_DEFINES = |
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 <signal.h> | |
#include <iostream> | |
#include <unistd.h> | |
// kill -9 pid | |
// kill -15 pid | |
// kill pid | |
// Ctrl+c | |
using namespace std; |
NewerOlder