Tic tac touch using Arduino

Jersagfast from The Custom Geek developed this tic tac toe game using an Arduino and a Adafruit 2.8″ TFT touchshield. He describes:

It’s pretty basic tic tac toe, and has score tracking, game logic (you can’t go twice in a row, and telling you if you win), and the ability to consume a chunk of time playing tic tac toe with my son. Below is the code, feel free to hack modify etc. If you play against a smart person (or yourself), you will have lots of Mosfet eye games!

Here is their link to the Arduino sketch code.

Via Adafruit.

Join the Conversation

8 Comments

  1. I have tried to load your code into arduino but get an error
    JOS_Touch_15.cpp: In function ‘void setup()’:
    JOS_Touch_15:137: error: ‘class Adafruit_TFTLCD’ has no member named ‘readRegister’
    any help
    thank you

    1. Why not contact the author directly? Author may not have seen this page or comment updates.
      BTW, Adafruit stuff always have excellent support. If you can get their sample code working, then hardware is mostly OK, and you can probably write your own TTT or adapt one in a few weekends.

  2. I have contacted the Original Dev directly and got no responce, others wanting to run the same software have posted on adafruits page and not gotten an answer other then “tell the original dev to update there sketch”… Kinda been in a endless loop for awhile now and getting no useful answers…

    1. My sympathies. That’s the trouble with putting projects online and then something in the chain gets updated, hardware or software. It’s hard to get people to update, ’cause they have moved on. Once I was even rebuffed when I tried getting Microchip to tweak an app note on USB for an obsolete part… :-) they said it was too old and let it be or something.
      The best that I can think of is that if you have an Arduino board and can get the touch shield to work, then you are already halfway there. Then you can either write your own or adapt the broken code. TTT isn’t too complicated to write. Software? Pffft! Code and upload until it works! You didn’t have to pull the EPROM and erase it under UV…
      I guess it will be a bit more hands-on and a bit more work. But I’m a dinosaur, I write all my own code and never depend on anybody’s library. So I never run into this kind of Arduino problem, it’s AVR or PIC for me…

  3. Thanks.

    I feel that if Version history lineage were kept intact that things would be much easyer for people like myself and others to learn from the code people post.

    I know that if im ever to share code not only will i post the sketch, But ill also be posting the Librarys and Arduino IDE version im using along with it.

Leave a comment

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.