blog

Blog


April 08 2008 - 01:36:17 UTC

Opencraft, Stargus, and libmpq

I\'ve been working a lot on Opencraft, and while it is still far from playable (there is no multiplayer or AI), it is improving.

I joined the Stargus project, and am currently working on the creep and overlays.

As for libmpq, I wrote a python binding called mpq.py to be used in OpenCraft.


January 23 2008 - 23:57:15 UTC

PIC Programming

I bought the Microchip PICkit 2 Starter Kit for $50 to learn to program PICs and to get a development environment ready.

The PICkit 2 programmer is very small, and it programs fast.

I used pk2 3.00 alpha for the programmer as it supports the newer firmware for the PICkit.

I installed gputils for assembly, but decided to try to use C.

SDCC (Small Device C Compiler) is a compiler initially targeted at the 8051, but it has been adapted for Microchip PICs. I installed the SVN version.

Sidenote: I got the PCBs for the UAV!

Test program
#include "pic/pic16f690.h"

typedef unsigned int config;
config at 0x2007 __CONFIG =
  _INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_OFF & _MCLRE_OFF &
  _CP_OFF & _BOR_OFF & _IESO_OFF & _FCMEN_OFF;

int main() {
  char pos;
  char res;
  int delay;

  TRISC = 0;
  
  pos = 0;

  while (1)
  {
    pos++;
    if (pos == 4) pos = 0;
    res = 0;
    if (pos==0) res = res + 1;
    if (pos==1) res = res + 2;
    if (pos==2) res = res + 4;
    if (pos==3) res = res + 8;
    PORTC = res;
    for (delay=0;delay < 10000;delay++);
  }
}
sdcc -mpic14 -p16f690 test.c
./pk2 -write ../test.hex && ./pk2 -on

January 16 2008 - 23:27:15 UTC

GHOP

I am participating in Google's GHOP program. I made a test case for pyparsing, made ACL code and icons for moinmoin, and made a script to launch servers via moinmoin's managed admin CLI interface.


December 26 2007 - 00:00:19 UTC

UAV

I have some parts for the quadrotor UAV and have almost completed the PCB design.


November 01 2007 - 19:42:46 UTC

IRC

Final programming stages of the irc project.

Right now the AJAX IRC client can:

All that is left is joining channels and networks after the program is started, and sending past messages to the client when it connects.