TinyCircuits

Recent Posts

Pages: 1 ... 8 9 [10]
91
TinyDuino / Re: USB TinyShield and Bluetooth
« Last post by loaf on January 02, 2019, 09:52:28 PM »
I've found what seems to be a solution. Full disclosure: I know next to nothing about C++ or Arduino programming.

The BLEsetup() function in the setup loop would never terminate. I added a return control at the end of that function (which lives in the UART.ino) -- that fixed the issue. Maybe that's not the best way to do it, but for now I am able to pass data back and forth via the BLE connection.

I'm all ears if there is a more correct solution.

Andrew
92
TinyDuino / Re: USB TinyShield and Bluetooth
« Last post by loaf on January 02, 2019, 06:30:25 PM »
I'm also having trouble getting the UARTPassThrough sketch -- the example in the STBLE library -- to work. I'm using the Arduino IDE (1.8.8) with a TinyDuino Basic Kit (Coin Cell), BLE TinyShield (ST) and accelerometer TinyShield.

In my case, it appears the sketch never escapes the setup() block. At 9600 baud the serial monitor spits O(10) garbage characters (e.g. BLE StacQ⸮) and then nothing else. At 115200 baud the serial monitor floods with repeated BLE Stack Initialized ... UART service added successfully. messages. In both instances the baud rate set in the sketch and in the serial monitor window match properly. Screenshots attached.

In neither case does the chip become discoverable to scanning devices. I'm new to this whole Arduino/TinyDuino scene, so guidance from you more experienced folks is very welcome! (I emailed info@tinycircuits late this afternoon, but I figured it wouldn't hurt to ask here too.)

Andrew
93
Tiny Arcade / Re: classic games ?
« Last post by mjculross on December 29, 2018, 06:36:34 PM »
See the following for details on the newly posted version 1.1 of TinyQuix:

   http://forum.tinycircuits.com/index.php?topic=1986.msg4055#msg4055


Enjoy !!

Mark J Culross
KD5RXT
94
User Projects / Code Examples / Simple implementation of TinyQuix - version 1.1
« Last post by mjculross on December 29, 2018, 06:33:00 PM »
This is a notification that I've posted TinyQUIX version 1.1, the source & binaries of which can be found in a folder of its own on my Google Drive (in the same place as previously indicated for TinySimon & TinySNAKE) at:

   https://drive.google.com/open?id=1Pv0LDGhe3uLNJvhF7-aSdTOSZMYe8hbx

Version 1.1 corrects the movements of player & sparx to only allow moving onto a border space where the border has at least one empty space adjacent.  In addition, player & sparx are randomly placed on any border at the start of a cycle.  Four new info screens that can be accessed from the splash screen have been added.

Here are the contents of the Readme.txt file:

 TinyQuix for the PocketArcade

    version 1.1 dated 12/28/2018 @1710
    written by Mark J Culross, KD5RXT (kd5rxt@arrl.net)

 The source & binaries (suitable for SD card loading) for TinyQuix is available in its own folder on my
    Google Drive (in the same place as for TinySimon & TinySNAKE):
       https://drive.google.com/open?id=1Pv0LDGhe3uLNJvhF7-aSdTOSZMYe8hbx

 Using the TinyScreen+ display to allow a player to play a loose implementation of the traditional Qix game

 Uses the TinyCircuits libraries for its display output & digital joystick input

 Configure/build to run in the PocketArcade Menu System as follows:
    Tools : Board : "Tiny Arcade"
    Tools : Build Options : "Binary for SD Card"
    Sketch : Export compiled Binary
    [ rename the binary to "Tiny Quix.bin" & place in "Tiny Quix" folder ]

 Configure/build to run standalone on the PocketArcade as follows:
    Tools : Board : "Tiny Arcade"
    Tools : Build Options : "Default"
    Sketch : Upload (after setting Tools/Port as appropriate)

 TODO:
    - limit the length of the quix

 Controls:
    - pressing the d-pad up/down at either the splash screen or any of the info screens shows more info screens
    - pressing the d-pad left/right at either the splash screen or any of the info screens adjusts the brightness
    - pressing the left button at the splash screen starts the game in player mode
    - allowing the 10-second timer on the splash screen to expire starts the demo mode
    - pressing the right button either while on the splash screen or any of the info screens or when in demo mode
      enters/exits the "debug" screen
       - pressing the up & down d-pad keys moves between debug controls
       - pressing the left & right d-pad keys while changing the number of lives causes changes by one
       - pressing the left button while changing the number of lives (with the d-pad) causes changes by ten
       - pressing the left button for any other debug control toggles that control on/off
    - the d-pad keys are used to move in player mode (player stops when no d-pad keys are pressed)

 Comparison to the original Qix game (purists take heed):

 Original Qix implementation:

    1) the Qix is multiple lines
    2) as the game progresses, the number of qix increases
    3) as the game progresses, the number of sparx increases
    4) as the game progresses, supersparx (which can kill the player) move around in the unfilled space
    5) the player & the sparx can only travel on borders that touch at least one empty space
    6) scoring is based upon the increase in the amount of space filled by the newly enclosed area(s)
    7) scoring includes a 1000 point bonus for each percent of filled space > 75%
    8) the player can move fast or slow, & space filled while moving slow scores higher points
    9) pressing a button while moving causes the player to move "slow"
   10) when moving, stix (temp lines) must have at least one space between them (to allow "filled" space)
   11) there is an initial animation when placing the player on the border

 TinyQuix implementation:

    1) the TinyQuix is always only a single line
    2) as the game progresses, there is always only a single TinyQuix
    3) as the game progresses, the number of sparx is always two
    4) there are no supersparx
    5) the player can freeze a sparx by closing a rectangle which leaves it no valid moves; also,
       the player can freeze itself by closing a rectangle whish leaves it no valid moves; in that
       case, the rectangle is closed/filled, but the player dies !!
    6) scoring is based upon the total amount of space filled each time new space is enclosed
    7) scoring includes a bonus for each percent of filled space > 75%
    8) the player can only move fast
    9) the buttons are only used to start the game (left button) & to enter/exit "debug" (right button)
   10) when moving, stix (temp lines) can be adjacent; this space will only be closed when another valid
       rectangle (with space to be filled) is closed; as long as the adjacent stix have not been
       closed, they remain vulnerable to collision by the TinyQuix, which kills the player
   11) there is only an animation when the player is killed


 NOTES:
    - the player's move generator in demo mode is very dumb, since it employs absolutely no offensive
      or defensive logic of any kind - it is purely semi-random !!
    - a score exceeding 100000 is signified with a red "+" displayed next to the word "Score"

 
Enjoy !!

Mark J Culross
KD5RXT

P.S. Bug reports & comments are both still encouraged & appreciated.  MJC
95
TinyDuino / Re: USB TinyShield and Bluetooth
« Last post by lennevia on December 28, 2018, 03:59:35 PM »
Is the baud rate in the program .ino and the Serial Monitor the same?
96
TinyDuino / Re: Serial.read baud-rate issues...
« Last post by Bullwinkle on December 28, 2018, 03:45:04 PM »
Ben,
  Thanks for the confirmation!  (I hadn't been back to this in quite a while, either! :)
I appreciate the follow-up!
Jim
Happy New Year!!!
97
Hi, just wanted to post here to see if anyone else experienced issues with TSV Converter not being able to read files with names containing certain characters?
I'm from Denmark and yesterday was converting a bunch of small cartoons I downloaded from youtube.
During the conversion process I noticed how randomly some of my downloaded files wouldn't convert even though all of them were downloaded using the exact same process. The file would not load to display a preview image in the converter, and when pressing convert would just make a duplicate of the file in a .tsv format but with a size of 0 bytes.
Today it dawned on me that it might have something to do with their naming, and decided to inestigate this... Well what do you know, indeed the files I could't convert yesterdaay were files with names containing danish characters "", "" and "".

Maybe someone else will encounter this issue in the future and find help in this post, or an update for the converter be released for it to handle a wider range of file names.
98
Tiny Arcade / Re: Need help setting up Tiny Arcade as a video player
« Last post by Tommyph1208 on December 23, 2018, 11:43:12 AM »
EDIT: Nevermind, I found the instructions w. the external boards manager link :)

Hi Laverna, thank you for the reply :)
I think I'll attempt the Menu approach, to also have some games on the "TV"... I have a small challenge in that I can't seem to figure out how to get the tiny screen to show up as a target board in the Arduino IDE... The Blink example that I initially wrote to it was using the "Arduino pro or pro mini" setting... I tried looking in the boards manager, but can't find anything related to the Tinycircuits board (sorry, my aruino skills are pretty non existant, so its all pretty new to me).
99
Tiny Arcade / Re: classic games ?
« Last post by mjculross on December 23, 2018, 09:29:24 AM »
See the following for details on a new & simple implementation of TinyQuix:

   http://forum.tinycircuits.com/index.php?topic=1986.0

Enjoy !!

Mark J Culross
KD5RXT
100
User Projects / Code Examples / Simple implementation of TinyQuix
« Last post by mjculross on December 23, 2018, 08:06:17 AM »
I was recently re-inspired by Ben Rose's interest in adding new games to be included in the ZIPfile distribution, so I have tackled the simple implementation of yet another classic game: TinyQuix is now available (so named in an attempt to keep copyright concerns at bay as much as possible).  The source & binaries (suitable for SD card loading) for the initial release of TinyQuix is available in its own folder on my Google Drive in the same place as previously indicated for TinySimon & TinySNAKE:
   https://drive.google.com/open?id=1Pv0LDGhe3uLNJvhF7-aSdTOSZMYe8hbx

Here's the run-down:
 
   TinyQuix for the PocketArcade
      version 1.0 dated 12/23/2018 @0605
      written by Mark J Culross, KD5RXT (kd5rxt@arrl.net)
 
   Using the TinyScreen+ display to allow a player to play a loose
      implementation of the traditional Qix game
 
   Uses the TinyCircuits libraries for its display output & digital
      joystick input
 
   Configure/build to run in the PocketArcade Menu System as follows:
      Tools : Board : "Tiny Arcade"
      Tools : Build Options : "Binary for SD Card"
      Sketch : Export compiled Binary
      [ rename the binary to "Tiny Quix.bin" & place in "Tiny Quix" folder ]
 
   Configure/build to run standalone on the PocketArcade as follows:
      Tools : Board : "Tiny Arcade"
      Tools : Build Options : "Default"
      Sketch : Upload (after setting Tools/Port as appropriate)
 
   TODO:
      - limit the length of the quix
      - limit player border movement only to borders that have at least one empty space nearby
 
   Controls:
      - pressing the left button at the splash screen starts the game in player mode
      - allowing the 10-second timer on the splash screen to expire starts the demo mode
      - pressing the right button either while on the splash screen or when in demo mode
        enters/exits the "debug" screen
         - pressing the up & down d-pad keys moves between debug controls
         - pressing the left & right d-pad keys while changing the number of lives causes changes by one
         - pressing the left button while changing the number of lives (with the d-pad) causes changes by ten
         - pressing the left button for any other debug control toggles that control on/off
      - the d-pad keys are used to move in player mode (player stops when no d-pad keys are pressed)
 
   Comparison to the original Qix game (purists take heed):
 
   Original Qix:
 
      1) the Qix is multiple lines
      2) as the game progresses, the number of qix increases
      3) as the game progresses, the number of sparx increases
      4) as the game progresses, supersparx (which can kill the player) move around in the unfilled space
      5) the player & the sparx can only travel on borders that touch at least one empty space
      6) scoring is based upon the increase in the amount of space filled by the newly enclosed area(s)
      7) scoring includes a 1000 point bonus for each percent of filled space > 75%
      8) the player can move fast or slow, & space filled while moving slow scores higher points
      9) pressing a button while moving causes the player to move "slow"
     10) when moving, stix (temp lines) must have at least one space between them (to allow "filled" space)
     11) there is an initial animation when placing the player on the border
 
   TinyQuix:
 
      1) the TinyQuix is always only a single line
      2) as the game progresses, the number of qix increases
      3) the number of sparx is always two
      4) there are no supersparx
      5) the player & the sparx can travel on any borders anywhere
      6) scoring is based upon the total amount of space filled each time new space is enclosed
      7) scoring includes a bonus for each percent of filled space > 75%
      8) the player can only move fast
      9) the buttons are only used to start the game (left button) & to enter/exit "debug" (right button)
     10) when moving, stix (temp lines) can be adjacent
     11) there is only an animation when the player is killed
 
Enjoy !!

Mark J Culross
KD5RXT

P.S. Bug reports & comments are both encouraged & appreciated.  MJC
Pages: 1 ... 8 9 [10]