Go Down

Topic: TFT Extension Version 2 (Read 19845 times) previous topic - next topic

dizzwold

Hi HazardsMind,

 What is this thing on the stick.

 LOL.

 Dizzwold.
I'm not a student or a lecturer. I'm a hobbyist.

PaulS

Quote
What is this thing on the stick.
It's a corn-dog. A hot dog dipped in a cornmeal batter and deep-fried. Very tasty with hot mustard.
The art of getting good answers lies in asking good questions.

CrossRoads

They're a staple at county fairs.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

dizzwold

Ah, Ok.

 Looks good, sounds good, but may-not-be from a health point.

 Would i be corrrect to have a Simpsons moment and say;

 "Hmm CornDog"?

Dizzwold.
I'm not a student or a lecturer. I'm a hobbyist.

Jeppo17

Hello Everybody, and first of all many thx to HazardsMind for his work.

I'm new from the Forum.

I've downloaded and work some days with the TFT_ExtensionV2 and I've a question about the slider.

How is possible to change the color of text that plot "SlideV.Touch"?
I.e. I've a button (ON/OFF) and a Slider.
When the button is "OFF" the text background is "red". When the button turn "ON" the background go "red".

Many thanks

HazardsMind

Thats a bug, I will be posting an update next week that fixes it as well as added in new features to all of the buttons.
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

Jeppo17

Many many thx for the prompt reply  ;) 

HazardsMind

#22
Aug 14, 2015, 02:18 am Last Edit: Feb 02, 2016, 02:06 pm by HazardsMind
UPDATE.

ProgressBar is currently only vertical.

I'll even throw in my TFT_Extras library. (Still adding to it)
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

HazardsMind

#23
Aug 14, 2015, 04:49 pm Last Edit: Aug 14, 2015, 06:10 pm by HazardsMind
For those of you getting errors with the Text lines, I reversed the order, so now it is Text, Color, Size, instead of Color, Size, Text.

Text("ON", "OFF", 0xF800, Big); 
It just makes more sense to have it this way.
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

HazardsMind

Update (but not releasing the library yet)

ProgressBar from this just past library was changed to Meter as it resembles more of a meter bar than the usual progress bar. However there still is a class called ProgressBar that has the look and feel of a loading screen bar. Also instead of just a line or bar going across the screen, I made it so that text can be displayed. (it's different)

Another change is, now buttons have an "Auto" size. You set the X and Y coords and instead of putting in the other X and Y coords for the lower part of the box (or radius if you are making a circle), you can now use AUTO and it will size the object based on longest text size. 

Ex. if you have a circle with the text "ON" and "OFF" it will see which of the two has more characters and it will set the radius based on the number of characters in the text and font size. 

I have yet to write in the better keyboard, but I will get to it when I can. 
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

Jeppo17

UPDATE.

ProgressBar is currently only vertical.

I'll even throw in my TFT_Extras library. (Still adding to it)
Hello Hazard

thx for the update.

Could be that in this new version also a state of the button is changed?
In the past versione I've use "button.latch" but now I've find a difference on the code and changing with "button.toggle" on the sketch all is working.

Let me know if is ok or a temporary bug
giuseppe

HazardsMind

I changed it from latch to toggle. 
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

HazardsMind

#27
Aug 30, 2015, 10:15 am Last Edit: Jan 05, 2016, 04:41 pm by HazardsMind
Shhh... its 4:14 AM.

New Update, Version 2.6.

Quote
// Version 2.6
// fixed the background text in all the buttons. (only shaves off a few microseconds)
// Fixed the keyboard to now allow colors and fill.
// Fixed the triangle class
// All buttons can now auto size themselves with the argument "AUTO" in place of the X2,Y2 coordinates or Radius.
// ** AUTO sizes the button based on the text with the most characters **
// took out sprintf from Meter class (reduced memory usage by 7,242 bytes!)
Now to work on my TFT_Extras libraries.

Enjoy and I guess good very early morning... yeah, lets go with that. :smiley-sleep:
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

HazardsMind

#28
Sep 14, 2015, 05:09 am Last Edit: Sep 24, 2015, 09:49 pm by HazardsMind
This is not really an update for the TFT_Extension library, but rather an new addition to the library. I'm starting to make games for my 7" display and I just finished one called Freeway Panic.

It is basically an old 8bit style game. Like something you would find on the Atari 2600. (More like a Tiger Handheld)

Eventually I plan on making my old games work with the new library as well as make more games with better graphics.

More to come.

--------------------------------------------
About Freeway Panic:
There are 3 modes, Easy, Hard and PANIC!

The objective is simply to dodge the oncoming cars and to rack up as many points as possible.
For every 500 points, the game gets faster. And for each difficulty more cars are on the screen at closer and closer spaces.

If in the next tick a car will be in front of you, then it will count as a crash, However if you time it correctly, you can dodge the car. This is something you might want to perfect BEFORE you try panic mode.

To get to Panic Mode:
With the game on set to Easy, simply press and hold the button for one second. Enjoy.

**(Game may run faster with the updated TFT_ExtensionV2 library below. Also I was using the Due with my 7" display and not a regular Arduino Mega.)**

-------------------------------What-is-new-----------------------------
I am currently working on two more games. One is a tank game and the other is a platformer.

The tank game will be two player (at this time, but I will develop an AI later to challenge the arduino). I may make the play field from very small to large. Very small = 11x11 grid and very large = 33x33 moveable grid. You will always see 11x11 grid on screen but if you choose the larger size, the background will move.

The platformer will be similar to Montezuma's Revenge on the Atari 2600 or ColecoVision. You go around finding treasure, avoid enemies and solving puzzles.
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

HazardsMind

#29
Sep 18, 2015, 04:24 pm Last Edit: Jan 05, 2016, 04:42 pm by HazardsMind
This one is an update to the TFT_ExtensionV2 library.

I added a new class called Cycle.
It takes either one or two buttons (A reference to a button ie. &myButton) and an array of functions. Example is provided.

Basically you press a button and it cycles through an array of functions. You can have as many functions as you want and again it can take one or two buttons. Using just one button will increment through the array and roll over when the last index has been surpassed. Two buttons will increment and decrement. (both roll over).

Minor note, It is very difficult to add text in a triangle, so I took out the option for text in the triangle class. However you can still have Header and Footer text.  I will be trying to solve this issue, but for now just don't use text with the triangle class.

In addition, the Delay() function for the three main buttons as well as CustomButton, have been fixed to not use a while loop. (Why I didn't do that before is because, reasons . . .)
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

Go Up