Grove GPS with Grove Base Hat for Raspberry Pi (Changing port definitions?)

Hi people,



Is it possible to connect the Grove GPS with Grove Base Hat for Raspberry Pi?



I just realized there is no RPISER port on the Grove Base Hat.

Hi there~



It’s compatible but you need to modify source code to change the port.

That’s great!



Do I connect the GPS to the UART port of the Grove Base Hat?

Hi guys,



how do I change the port to the UART port or a Digital port?





code from desterGPS.py:



lass GROVEGPS():

def init(self, port=’/dev/ttyAMA0’, baud=9600, timeout=0):

self.ser = serial.Serial(port, baud, timeout=timeout)

self.ser.flush()

self.raw_line = “”

self.gga = []

self.validation =[] # contains compiled regex