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
/* | |
This is a modified version of the PS3BT.ino example sketch by Kristian Lauszus | |
For more information visit his blog: http://blog.tkjelectronics.dk/ or | |
send him an e-mail: kristianl@tkjelectronics.com | |
*/ | |
#include <Servo.h> // Include the Servo library: https://www.arduino.cc/en/reference/servo | |
Servo servo1, servo2; // Create instances of type Servo. servo1 is the steering servo and servo2 is the ESC. |
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) 2008-2014, Andrew Walker | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in |
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) 2014 Kristian Lauszus, TKJ Electronics. All rights reserved. | |
This software may be distributed and modified under the terms of the GNU | |
General Public License version 2 (GPL2) as published by the Free Software | |
Foundation and appearing in the file GPL2.TXT included in the packaging of | |
this file. Please note that GPL2 Section 2[b] requires that all works based | |
on this software must also be made publicly available under the terms of | |
the GPL2 ("Copyleft"). | |
Contact information |
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
/* | |
Example sketch for the PS3 Bluetooth library - developed by Kristian Lauszus | |
For more information visit my blog: http://blog.tkjelectronics.dk/ or | |
send me an e-mail: kristianl@tkjelectronics.com | |
*/ | |
#include <PS3BT.h> | |
#include <SPI.h> | |
#include <Servo.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
M104 S0 ; turn off temperature | |
M140 S0 ; turn off heatbed | |
G28 X0 ; home X axis | |
G1 Y150.0 ; move bed forward | |
M84 ; disable motors |
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
avrdude -p m644 -c usbasp -t | |
avrdude> write eeprom 0x00 0x00 0x20 0x41 0x00 0x00 0x80 0x3f 0x00 0x00 0x40 0x40 0x00 0x00 0x35 0x43 | |
avrdude> dump eeprom 0 15 |
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/bash | |
### BEGIN INIT INFO | |
# Provides: sixad | |
# Required-Start: $local_fs $syslog $remote_fs bluetooth | |
# Required-Stop: $local_fs $syslog $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start sixad | |
### END INIT INFO | |
# |
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
#----------------------------------------------- | |
# Make command: | |
# make build=<build> all | |
# <build>: debug or release, release by default. | |
#----------------------------------------------- | |
#----------------------------------------------- | |
# setup variables | |
# ---------------------------------------------- |
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/bash -e | |
kernel=$(uname -r | tr -d '+') | |
build=${build:-$(uname -v | awk '{print $1}' | tr -d '#')} | |
tarfile=8192eu-$kernel-$build.tar.gz | |
wget http://fars-robotics.net/$tarfile | |
tar xzf $tarfile | |
./install.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
#!/bin/bash -e | |
diskutil list | |
read -p $'This script will unmount "/Volumes/BOOTCAMP" and set the permission for the EFI (/dev/disk0s1) and BOOTCAMP (/dev/disk0s3) permissions to executable\nPress enter to continue' | |
diskutil unmount /Volumes/BOOTCAMP | |
sudo chmod 777 /dev/disk0s1 | |
sudo chmod 777 /dev/disk0s3 |