Contributor | Aryan Nanda |
Organization | BeagleBoard.org |
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
#!/bin/sh | |
[ -z "$PART_PREFIX" ] && PART_PREFIX='' | |
DD_ARGS='status=progress conv=fsync' | |
backup() { | |
src="$1" | |
dst="$2" | |
sfdisk -d "${src}" > "${dst}-table.txt" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
sudo apt update
sudo apt install mjpg-streamer-opencv-python
Create filter file. (/home/debian/opencv_filter.py)
import cv2
import numpy as np
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
obj-m += uio_pruss_shmem.o | |
all: | |
make -C /lib/modules/`uname -r`/build M=`pwd` V=1 ARCH=arm modules | |
install: | |
make -C /lib/modules/`uname -r`/build INSTALL_MOD_PATH=/lib/modules/`uname -r` M=`pwd` V=1 ARCH=arm modules_install | |
cd /lib/modules/`uname -r` | |
depmod -a | |
/opt/scripts/tools/developers/update_initrd.sh |
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
.origin 0 | |
.entrypoint START | |
// the number of times we blink the LED | |
#define NUMBER_OF_BLINKS 10 | |
#define GPIO_BANK1 0x4804c000 | |
#define GPIO1_LED3BIT 1<<24 | |
#define GPIO_SETDATAOUT 0x194 | |
#define GPIO_CLEARDATAOUT 0x190 |
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
#!/bin/sh -eu | |
LOCAL_PROJECT_PATH=${1-$PWD} | |
BUILD_COMMAND=" | |
shards build --static --release | |
chown 1000:1000 -R bin | |
" | |
INSTALL_CRYSTAL=" | |
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >>/etc/apk/repositories | |
apk add --update --no-cache --force-overwrite \ |
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
# copy this file to ~/.local/share/applications/. Change installation paths below to fit your setup. | |
[Desktop Entry] | |
Version=9.3.0 | |
Type=Application | |
Terminal=false | |
Name=EAGLE | |
Comment=PCB design: schematic capture, board layout, and autorouter | |
# paths need to be absolute, no ~ allowed within this file |
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 <stdio.h> | |
#include <unistd.h> | |
int main() { | |
FILE * spidev = fopen("/dev/spidev2.1", "wb"); | |
//Left 7 Segment | |
fwrite("\x40\x00\xc0", 1, 3, spidev);//"0's" are on, "1's" are off | |
//Right 7 Segment | |
fwrite("\x40\x01\xc0", 1, 3, spidev); | |
//You should see the segments look like zeroes. |
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
/* | |
* Copyright (C) 2013 CircuitCo | |
* | |
* Virtual cape for SPI1 on connector pins P9.29 P9.31 P9.30 P9.28 | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. | |
*/ |
NewerOlder