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
import random | |
import time | |
import copy | |
# Parameters | |
NUM_COLORS = 4 | |
NUM_ROWS = 17 | |
NUM_COLS = 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
local turnLeft = false | |
function Update() | |
-- Store our angular velocity in a variable to make it easier to use | |
local angVel = gyro:AngVel() | |
if ranger:Range() > 0 then | |
-- We see another ship, stop spinning, start ramming, | |
-- and remember which way to turn if we lose it again |
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
{ | |
"name": "(TODO) Simple Ship Mk I", | |
"parts": [ | |
{ | |
"type": "brain", | |
"pos": [0,0] | |
}, | |
{ | |
"type": "hull", | |
"pos": [-1,0], |
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
<head> | |
<title>PropSlam Mumble Counter</title> | |
<link href='http://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'> | |
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> | |
<style> | |
body { | |
font-family: 'Inconsolata', sans-serif; |
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 <Wire.h> | |
#define CTRL_REG1 0x20 | |
#define CTRL_REG2 0x21 | |
#define CTRL_REG3 0x22 | |
#define CTRL_REG4 0x23 | |
#define CTRL_REG5 0x24 | |
// I2C address of the L3G4200D. | |
// Use I2C scanner to find this value! |
NewerOlder