Shenzhen I/O Wiki

◀ Back to conceptMAIL

Transcript[]

Before Completion[]

Carl Little help?

From: Carl Tesky <carl@longteng-co-ltd.gd.cn>

I’m wrapping up a project to make a game console and could use some assistance. Before you get too excited, it sounds *far* more fun than it actually is… the “console” is just a tiny super-cheap box we’re making for SleepCUBES, the big Japanese capsule hotel chain, to stick in every pod. The games’ll just be some free dross they find, I’m sure.

At any rate, I’ve got it mostly done, I just need a module for the little wireless controller that comes with it. I ping you, you tell me what’s going on. Nothing much more than that.

After Completion[]

Carl Re: Little help?

From: Carl Tesky <carl@longteng-co-ltd.gd.cn>

Thanks mate, I owe you one. You’ve just helped make thousands of dead-tired salarymen marginally happier. That is, if they actually find the console and use it to play a game before passing out…

Description[]

  • x and y are simple inputs connected to a joystick.
  • a and b are simple inputs connected to buttons.
  • radio-rx is a non-blocking XBus input connected to a radio receiver.
  • radio-tx is an XBus output connected to a radio transmitter.
  • When a data packet is received over the radio from the game console, respond with the following 3-value data packet, making sure to use the most recent input values:
x y 0, if a = 0 and b = 0
1, if a = 100 and b = 0
2, if a = 0 and b = 100
3, if a = 100 and b = 100