Ultimate GPS break displayed on a Topway LCD

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Wheeljam
 
Posts: 9
Joined: Tue Oct 07, 2014 10:11 pm

Ultimate GPS break displayed on a Topway LCD

Post by Wheeljam »

I am using a Arduino UNO and a Topway 16x2 LCD display (MakerShed kit gotten from radio shack) with an Adafruit Ultimate GPS breakout v3. My question is how do I get rid of the digits displaying after the decimal point. I don't want to know I am going .32 knots, only zero ( if I am sitting still). I think I got the code uploaded, along with a pic of it working almost how I want it. In the pic it says "Speed: 0.03". I want it to display "Speed: 0". Also I read about possible ways to convert Knots to MPH. I think I figured it out when displaying the speed. Did I do that right??
Attachments
gps-lcd.txt
(4.23 KiB) Downloaded 136 times
IMAG1470.jpg
IMAG1470.jpg (141.9 KiB) Viewed 230 times

User avatar
Franklin97355
 
Posts: 23938
Joined: Mon Apr 21, 2008 2:33 pm

Re: Ultimate GPS break displayed on a Topway LCD

Post by Franklin97355 »

You would write code to truncate the values to integer before displaying them.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”