I hereby claim:
- I am alexanderhiam on github.
- I am graycat (https://keybase.io/graycat) on keybase.
- I have a public key whose fingerprint is D01F 6B39 58C6 6360 CCBE BBE6 BDF4 4E9A 807D EF3E
To claim this, I am signing this object:
# Good info on the current PRU remoteproc drivers here: | |
# http://processors.wiki.ti.com/index.php/PRU-ICSS_Remoteproc_and_RPMsg | |
# I mostly just followed this guide: | |
# https://groups.google.com/d/msg/beagleboard/od6h9yTKUD4/jzGE6KaxAQAJ | |
# On the BeagleBone with a 4.4 kernel: | |
# root@beaglebone:~# uname -r | |
# 4.4.11+ |
$ git clone https://github.com/beagleboard/linux.git | |
$ cd linux | |
$ git checkout 4.4 | |
$ git checkout -b new-stuff | |
# make changes... | |
# build: | |
$ fakeroot make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bb.org_defconfig |
I hereby claim:
To claim this, I am signing this object:
import requests | |
from bbio import * | |
from bbio.libraries.BMP183 import BMP183 | |
from bbio.libraries.HTU21D import HTU21D | |
bmp = BMP183(SPI0) | |
htu = HTU21D(I2C2) | |
API_KEY = "0000000000000000" # Put your API key here |
while (1) { | |
digitalWrite(x, 1); | |
delayus(1); | |
digitalWrite(x, 0); | |
delayus(2); | |
} |
#include "pru_rpc.h" | |
/* This is a function that supports remote calling from the kernel or userspace. | |
*/ | |
PRU_RPC_return_code RPC_digitalWrite(PRU_RPC_args *args) { | |
uint8_t pin, state; | |
if (PRU_RPC_ParseArgs(args, "bb", &pin, &state) < 0) { | |
return PRU_RPC_INVALID_ARGS; | |
} | |
if (state) { |
class PRUDriverWrapper(object): | |
firmware = 'pru_driver.bin' | |
def __init__(self, pin1, pin2): | |
self.pru_driver = PRU.load(self.firmware, pin1, pin2) | |
def doit(self, value): | |
self.pru_driver.callFunction('doit', value) | |
def read(self): |
""" | |
bbb_thermal_imager.py | |
Oct. 2014 | |
First whack at thermal imaging with the BeagleBone Black and AMG88xx 8x8 | |
thermal arrays sensors. | |
Copyright (c) 2014 Alexander Hiam | |
Permission is hereby granted, free of charge, to any person obtaining a copy |
import serial, fcntl, struct, time | |
ser = serial.Serial( | |
port='/dev/ttyO4', | |
baudrate=9600, | |
timeout=1, | |
parity=serial.PARITY_NONE, | |
stopbits=serial.STOPBITS_ONE, | |
bytesize=serial.EIGHTBITS | |
) |