Close

Ever wanted to play pong on your phone ? :D

A project log for Hacking a Fairphone

...or how to build an extension module, that can enhance your abilities with your phone.

Kirschner ChristophKirschner Christoph 04/08/2018 at 17:316 Comments

Discussions

Shree Kumar wrote 04/12/2018 at 18:37 point

@Kirschner Christoph I think this will mostly be a kernel hack and some userspace code (C rules!). Some Java might be required, though.  I will document it as soon as I finish it, and then maybe you can take a crack at it too! 

In the Android world, Java is very important. It actually makes it quite easy to write simple applications.  In the OLED example (soon to be documented), I do all my bitmap drawing through the Android Java API. Then convert it into an bit pattern for the OLED. 

  Are you sure? yes | no

Kirschner Christoph wrote 04/13/2018 at 04:01 point

That sounds really interessting !!

Can't wait!!

  Are you sure? yes | no

Shree Kumar wrote 04/08/2018 at 18:54 point

Good one!

  Are you sure? yes | no

Kirschner Christoph wrote 04/10/2018 at 15:58 point

I saw this in your project and thought it would be cool !! :D mine was written for a 8x8 matrix and I simply rewrote the code so that the game works on this charlieplexed 16x7 matrix and with two buttons instead of a poti :)

  Are you sure? yes | no

Shree Kumar wrote 04/10/2018 at 16:08 point

Haha ! It's good, still. Put a SPI oled if you can - that will totally blow things up!  I found I2C to be a bit slow, and am planning to move it to SPI.

Here's another cool idea I am investigating right now -- it would be amazing if the touch panel (of the primary screen) can be used as a controller. That way, pong can run very fast & the users reflexes can be tested.  Best of all, every phone already has a touchscreen. So I think this would be a hit. 

Would fairphone software allow this in some way ?

  Are you sure? yes | no

Kirschner Christoph wrote 04/12/2018 at 18:21 point

@Shree Kumar

And that is the point where the problems start.. The Software-part..

I'm kind of good in C but Java is very new to me..

But the idea is great !! Sounds quite tricky to play :D

  Are you sure? yes | no