Show Posts
Pages: [1]
1  Using Arduino / Installation & Troubleshooting / Thank you on: March 28, 2013, 10:56:10 am
Now i can compile the code, BUT! The GLCD shows NOTHING!!!!!!!!!!!!!!
2  Using Arduino / Installation & Troubleshooting / Help me with this code! on: March 28, 2013, 09:53:29 am
Hello, I started new project: future teller with glcd , but when i want to upload it i get theese errors
Quote
future_teller.ino: In function 'void setup()':
future_teller:34: error: expected `;' before ':' token
future_teller:38: error: expected `;' before ':' token
future_teller:42: error: expected `;' before ':' token
future_teller:46: error: expected `;' before ':' token
future_teller:50: error: expected `;' before ':' token
future_teller:54: error: expected `;' before ':' token
future_teller:58: error: expected `;' before ':' token
future_teller:62: error: expected `;' before ':' token
future_teller:66: error: expected `;' before ':' token
future_teller:70: error: expected `;' before ':' token
future_teller:75: error: expected `;' before ':' token
future_teller:30: error: label 'randNumber' used but not defined

please help me, I'm newbie! here's my code:
Code:
/*
   Future teller
 
 This sketch says your future to the LCD
 If you want to see your future again press reset.
 
 The circuit:
 See the inlcuded documentation in glcd/doc directory for how to wire
 up the glcd module. glcd/doc/GLCDref.htm can be viewed in your browser
 by clicking on the file.
 
 */
long randNumber;

// include the library header
#include <glcd.h>

// include the Fonts
#include <fonts/allFonts.h>

void setup() {
  randNumber = random(1, 11);

  // Initialize the GLCD
  GLCD.Init();

  // Select the font for the default text area
  GLCD.SelectFont(System5x7);

  goto randNumber;


1:
  GLCD.print("Yes!");

2:
  GLCD.print("No!");

3:
  GLCD.print("Consult me Later.");

4:
  GLCD.print("You can Count on it.");

5:
  GLCD.print("Indications says Yes!");

6:
  GLCD.print("No doubt about it!");

7:
  GLCD.print("Cannot Foretell Now!");

8:
  GLCD.print("Very Likely!");

9:
  GLCD.print("Consult me Later!");

10:

  GLCD.print("Focus and ask again!");

11:
  GLCD.print("Today - Is your Lucky Day!!");

}
void loop() {

}
Thank you for your help!
Pages: [1]