Hey guys, this morning I had time to test out my wonderful xmas present. It's the education package of Bricklets and Bricks from tinkerforge
This game is called "Bricklet Cars". It's written in java and it's a game, that's why I thought of publishing it here. I guess almost nobody of you has a bricklet at home, so I guess it doesn't make sense to give any jar to you.
This project didn't make any sense at all anyways. It could have been done much better, and in the end you need a pc connected to the bricklet anyways
The bricklet come with a bit of software: The Bricklet Daemon (runs on all systems).
The daemon communicates with the Bricklet over USB. You can see it as a driver... a python driver... for the bricklet.
The daemon also listens on the 4223 port for messages from applications. They use a super easy protocol for executing super easy functions, which tell the bricklet what to do, or return some input.
Around that Protocol they built lots of libraries in all kinds of languages. For example Java. Using a simple Tinkerforge.jar I am able to communicate with the brick over TCP/IP.
Now actually I don't run the game on my brick. I run it on my PC. There it continues getting and sending messages from and to the brick daemon, which sends messages to the brick, which sends messages to the bricklets (brick = part with the "super"-cpu of the bricklet system, bricklets = input / output stuff, for example joystick, LCD display, Linear potentiometer, temperature sensor, ambient light sensor, digital IO and much much more).
So I have my application running on the pc doing all the stuff and the Bricklet giving the Joystick input to the pc and getting the information about what to print to the LCD display from the pc.
Here is a vid of the game or you wouldn't see anything. I think of building the same game in the Console, but therefore I have to learn to use JCurses somehow... I can't "overwrite" stuff in the console with the usual java :/http://www.youtube.com/v/om7r8Be99DI?version=3&hl=en_US&start=
I'm sorry. You almost can't see anything at all... This is the best video camera I can use... Hopefully I'll be able to create that console version soon