Serial.println(gps.speed.value()); // Raw speed in 100ths of a knot (i32)Serial.println(gps.speed.knots()); // Speed in knots (double)Serial.println(gps.speed.mph()); // Speed in miles per hour (double)Serial.println(gps.speed.mps()); // Speed in meters per second (double)Serial.println(gps.speed.kmph()); // Speed in kilometers per hour (double)

/* This sample sketch demonstrates the normal use of a TinyGPS++ (TinyGPSPlus) object. It requires the use of SoftwareSerial, and assumes that you have a 9600-baud serial GPS device hooked up on pins 4(rx) and 3(tx). Alternatively: Serial1 (RX1+TX1, pin 18+19 on Mega/Due)*/

Below is a sample sketch that will control TWO digital potentionmetershaving the same address, that live on two busses off the i2c splitterboard (BUS1, the second one, and BUS3, the fourth).

It is based on the I2C / "wire" library example that used to controljust ONE of those digital potentiometers.

Instead of

Wire.beginTransmission (addr);

you now have to do:

busBeginTransmission(byte bus,byte addr)

to start communicating with an i2c device on a specific bus. (the chipallows you to select multiple busses at once, but you don't need that.On the other hand, with two digital potentiometers at the sameaddress, you should be able to set them to the same value by selectingboth busses at the same time....busBeginTransmission (BUS1|BUS3, ...) )

// Use these values to select a bus. You COULD enable multiple// busses at the same time, but normally that is not necessary. #define BUS0 0x01#define BUS1 0x02#define BUS2 0x04#define BUS3 0x08#define BUS4 0x10#define BUS5 0x20#define BUS6 0x40#define BUS7 0x80