Skip to content

Instantly share code, notes, and snippets.

Tabish Chasmawala tabchas

Block or report user

Report or block tabchas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tabchas
tabchas / mergesort.py
Created Jul 7, 2012
Mergesort Algorithm - Python
View mergesort.py
def split_leftlist(list):
half = len(list) / 2
return list[:half]
def split_rightlist(list):
half = len(list) / 2
return list[half:]
def merge(left_list, right_list):
@tabchas
tabchas / Target_Transmitter.pde
Created Jun 24, 2012
Wireless Management System for Shooting Competitions - Arduino Target Transmitter Code
View Target_Transmitter.pde
#include <EEPROM.h>
#include <NewSoftSerial.h>
NewSoftSerial mySerial(2,3);
String readString = "";
String holdString = "";
String id_of_sensor = String(0);
@tabchas
tabchas / Shooter_Transmitter.pde
Created Jun 24, 2012
Wireless Management System for Shooting Competitions - Arduino Shooter Transmitter Code
View Shooter_Transmitter.pde
#include <EEPROM.h>
#include <NewSoftSerial.h>
NewSoftSerial mySerial(2,3);
String readString = "";
String holdString = "";
String id_of_sensor = "0";
@tabchas
tabchas / Receiver.pde
Created Jun 24, 2012
Wireless Target Identification - Arduino Receiver Code
View Receiver.pde
void setup()
{
Serial.begin(9600);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, INPUT);
}
@tabchas
tabchas / Transmitter.pde
Created Jun 24, 2012
Wireless Target Identification - Arduino Transmitter Code
View Transmitter.pde
int piezoPin = 0;
int piezoThreshold = 40;
int piezoVal = 0;
int array_of_dip[10];
int id_of_sensor = 1;
void serial_print()
{
Serial.print("<");
Serial.print(id_of_sensor);
You can’t perform that action at this time.