Post by helloworld1 on Apr 29, 2015 2:33:59 GMT -8
Hello everyone,
I need to use Gameduino2 for a project but i got problems with the utilisation of tags. Because there no a complet code on the book so i can't test it and try to understand :s
I'm not good at programmation, and I don't really understand how they works.
My Projet is a system of "Bike Rental" :
1st : The user choose between two Circles : "Rent a Bike" or "Return a Bike".
So i did this Program :
That's all what I did.
2nd : The user choose.
If It's to "Rent a Bike", the program should shows the differents prices to rent a bike. With a button Accept or Decline, If the user Accept , it will just Launch a programm that I have and launch an RTC (Real Time Clock). If the User Decline , the program comes back to the 1st Screen.
If It's "Return a Bike" , the program should calculate the price in function of an RTC (Real Time Clock) and show it on the screen.
3rd: I got an 4*4 Keypad for the payment or maybe we can do it with the widget ? .
Just a program ,where when you put a good code , it shows "Thanks" on the Screen , And if It's the wrong code it says "Try Again" .
I really want to learn about Gameduino , If you have some advices for me because it's really URGENT and i really need your help !
Sorry for my English, I'm French ! :s
I need to use Gameduino2 for a project but i got problems with the utilisation of tags. Because there no a complet code on the book so i can't test it and try to understand :s
I'm not good at programmation, and I don't really understand how they works.
My Projet is a system of "Bike Rental" :
1st : The user choose between two Circles : "Rent a Bike" or "Return a Bike".
So i did this Program :
#include <EEPROM.h>
#include <SPI.h>
#include <GD2.h>
void setup()
{
GD.begin();
}
void loop()
{
GD.ColorRGB(0x111111);
GD.Clear();
GD.PointSize(16 * 80);
GD.Begin(POINTS);
GD.ColorRGB(0xFF0000);
GD.Vertex2ii(100, 160);
GD.ColorRGB(0x00FF00);
GD.Vertex2ii(380, 160);
GD.ColorRGB(0xFFFFFF);
GD.cmd_text(240, 30, 31, OPT_CENTER, "Velo V.A.E");
GD.ColorRGB(0xFFFFFF);
GD.cmd_text(380, 170, 30, OPT_CENTER, "A Bike");
GD.ColorRGB(0xFFFFFF);
GD.cmd_text(380, 130, 30, OPT_CENTER, "Rent");
GD.ColorRGB(0xFFFFFF);
GD.cmd_text(100, 170, 30, OPT_CENTER, "A Bike");
GD.ColorRGB(0xFFFFFF);
GD.cmd_text(100, 130, 30, OPT_CENTER, "Return");
GD.swap();
}
That's all what I did.
2nd : The user choose.
If It's to "Rent a Bike", the program should shows the differents prices to rent a bike. With a button Accept or Decline, If the user Accept , it will just Launch a programm that I have and launch an RTC (Real Time Clock). If the User Decline , the program comes back to the 1st Screen.
If It's "Return a Bike" , the program should calculate the price in function of an RTC (Real Time Clock) and show it on the screen.
3rd: I got an 4*4 Keypad for the payment or maybe we can do it with the widget ? .
Just a program ,where when you put a good code , it shows "Thanks" on the Screen , And if It's the wrong code it says "Try Again" .
I really want to learn about Gameduino , If you have some advices for me because it's really URGENT and i really need your help !
Sorry for my English, I'm French ! :s