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
from __future__ import print_function | |
import re | |
import sys | |
import select | |
import atexit | |
import termios | |
import optparse | |
try: |
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
from evdev import InputDevice, categorize, ecodes | |
import Motors | |
import Servo | |
LT=310 | |
RT=311 | |
LB=308 | |
RB=309 | |
LR=16 | |
UPDN=17 |
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> | |
//Green = DI | |
//Blue = CI | |
//BLack = GND | |
//Red = PWR | |
#define ledcount 4 |
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
/* Work in Progress */ | |
#include <dt-bindings/gpio/gpio.h> | |
#include <dt-bindings/pinctrl/am33xx.h> | |
#include <dt-bindings/board/am335x-bbw-bbb-base.h> | |
/dts-v1/; | |
/plugin/; | |
/ { |
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 | |
* Copyright (C) 2018 Drew Fustini <[email protected]> | |
* | |
* Adafruit 1.8" TFT LCD on SPI1 bus using tinydrm st7735r driver | |
* | |
* LICENSE: | |
* -------- | |
* 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 |
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
MOTOR CAPE | |
M1 HIGH = P8_18 | |
M2 HIGH = P8_16 | |
M3 HIGH = P8_14 | |
M4 HIGH = P8_26 | |
Set to low to go backwards, high to go forwards | |
M1 PWM = P9_16 | |
M2 PWM = P9_14 |
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
#48x32 31.416 inches = full rotation at | |
#from bbpystepper import Stepper | |
#find battety cord and solder cord to connect to H Bridge | |
# connect GND of H bridge to beaglebone | |
import Adafruit_BBIO.PWM as PWM | |
import Adafruit_BBIO.GPIO as GPIO | |
import Adafruit_BBIO.ADC as ADC | |
import time |
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
#48x32 31.416 inches = full rotation at | |
#from bbpystepper import Stepper | |
#find battety cord and solder cord to connect to H Bridge | |
# connect GND of H bridge to beaglebone | |
import Adafruit_BBIO.PWM as PWM | |
import Adafruit_BBIO.GPIO as GPIO | |
import Adafruit_BBIO.ADC as ADC | |
import time |
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
namespace BrainPadApplication5 | |
{ | |
//Includes all of the libraries necessary for the code to run | |
using System; | |
using System.Diagnostics; | |
using System.Threading; | |
using GHIElectronics.TinyCLR.Devices.Gpio; | |
using GHIElectronics.TinyCLR.Devices.Adc; | |
using GHIElectronics.TinyCLR.Pins; | |
NewerOlder