Skip to content

Instantly share code, notes, and snippets.

View shahpoojan's full-sized avatar

Poojan Shah shahpoojan

  • Georgia Tech
  • Atlanta
View GitHub Profile
@shahpoojan
shahpoojan / myusart.c
Created July 6, 2011 13:20
BitCloud : Read and Write on USART
/**************************************************************************//**
\file myusart.c
\application to read data from USART.
\the application turns on the Red light, if 'a' is received, Green Light if
\'b' is received and Yellow light for anything else
******************************************************************************/
@shahpoojan
shahpoojan / usb.cpp
Created July 6, 2011 12:57
A code to send data on the USB port for Windows
#include <iostream>
#include <string>
#include <Windows.h>
#include <tchar.h>
#include <stdio.h>
#include <Winbase.h>
HANDLE hCom;
DWORD sendData (const char* data, DWORD size)