Show Posts
|
|
Pages: 1 [2] 3 4 ... 210
|
|
18
|
Using Arduino / Installation & Troubleshooting / Re: Arduino 1.5.1 won't work on a Mac
|
on: December 20, 2012, 01:15:27 pm
|
Just downloaded 1.5.1r2 on my 10.7.5 machine, and it ran ok. Uploaded some sketches to an Uno, but I don't have a Due. In case it makes a difference, java -version reports: java version "1.6.0_37" Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909) Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
|
|
|
|
|
24
|
Using Arduino / Programming Questions / Re: Compiling on Linux vs Windows?
|
on: December 19, 2012, 07:52:57 am
|
Your new library is the github folder "AS3935" copy that folder with all the files and examples folder. in the arduino install folder "xxx\arduino-1.0.x\libraries" make sure its "libraries" NOT "lib".
FYI:After install I used the example sketch and it verified fine on win7 64-bit, Arduino 1.0.2
That's not the correct place for third-party libraries. They should go, as PaulS said, in the libraries subdirectory of your sketchbook directory. If you don't know the location of the sketchbook directory, look in preferences.
|
|
|
|
|
27
|
Using Arduino / Programming Questions / Re: most significant digits on calculation
|
on: December 18, 2012, 07:03:58 am
|
http://arduino.cc/en/Serial/PrintAn optional second parameter specifies the base (format) to use; permitted values are BIN (binary, or base 2), OCT (octal, or base 8), DEC (decimal, or base 10), HEX (hexadecimal, or base 16). For floating point numbers, this parameter specifies the number of decimal places to use. But note that: http://arduino.cc/en/Reference/FloatFloats have only 6-7 decimal digits of precision. That means the total number of digits, not the number to the right of the decimal point. Unlike other platforms, where you can get more precision by using a double (e.g. up to 15 digits), on the Arduino, double is the same size as float.
|
|
|
|
|
29
|
Using Arduino / Programming Questions / Re: PONG Game Paddle Size
|
on: December 17, 2012, 10:21:08 am
|
Note that if you increase the width of the paddle, you should restrict the range of possible positions so that the edge of paddle doesn't go off the screen. (This would also address the clipping issue that AWOL refers to.)
You'll also want to change the collision detection code so that you can tell when the ball hits the ends of the paddle.
|
|
|
|
|