This file contains hidden or 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 hidden or 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: [email protected] | |
| */ | |
| #include <PS3BT.h> | |
| #include <SPI.h> | |
| #include <Servo.h> |
This file contains hidden or 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
| #if 0 // Right | |
| #define PWM 9 | |
| #define DIR 8 | |
| #define PIN_REG COM1A1 | |
| #define PWM_REG OCR1A | |
| #else // Left | |
| #define PWM 10 | |
| #define DIR 12 | |
This file contains hidden or 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 | |
| gpio mode 8 up # Input with internal pull-up resistor | |
| #echo "Compiling..." | |
| #make -C ~/ImageAnalysisWithMicrocomputer30330/ZomBuster/src 1> /dev/null | |
| echo "Press button to start" | |
| while true; do | |
| while [ $(gpio read 8) == 1 ]; do |
This file contains hidden or 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
| $ detex Report.tex | echo "scale=3; `wc -m`/2400" | bc -l | |
| $ detex Report.tex | tr -d ' \t\r\n' | echo "scale=3; `wc -m`/2200" | bc -l |
This file contains hidden or 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: [email protected] | |
| */ | |
| #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 hidden or 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
| /* | |
| Code for controlling a RC car using a SteelSeries SRW-S1 Steering Wheel - developed by Kristian Lauszus | |
| The PPM signal is connected to the trainer port of a RC transmitter which then sends the signal to the RC car | |
| The SRWS1 library is part of the USB Host Shield library: https://github.com/felis/USB_Host_Shield_2.0 | |
| PPM code is based on: https://code.google.com/archive/p/generate-ppm-signal | |
| For more information visit my blog: http://blog.tkjelectronics.dk/ or | |
| send me an e-mail: [email protected] | |
| */ | |
| #include <EEPROM.h> // Include the official EEPROM library |
This file contains hidden or 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
| # /opt/retropie/configs/n64/InputAutoCfg.ini | |
| # See: https://github.com/mupen64plus/mupen64plus-input-sdl/blob/master/data/InputAutoCfg.ini | |
| [PLAYSTATION(R)3 Controller] | |
| [Sony PLAYSTATION(R)3 Controller] | |
| [SHENGHIC 2009/0708ZXW-V1Inc. PLAYSTATION(R)3Conteroller] | |
| plugged = True | |
| plugin = 2 | |
| mouse = False | |
| AnalogDeadzone = 4096,4096 |
This file contains hidden or 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
| #!/usr/bin/python | |
| # | |
| # Copyright (C) 2018 Kristian Lauszus, Candela. All rights reserved. | |
| # | |
| # Contact information | |
| # ------------------- | |
| # Kristian Lauszus | |
| # Web : http://www.lauszus.com | |
| # e-mail : [email protected] |
This file contains hidden or 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 |