This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This code is only workable on python 2 | |
import httplib, urllib | |
import time | |
from GPS_API import * | |
import serial | |
ser = serial.Serial("/dev/serial0") # Select your Serial Port | |
ser.baudrate = 9600 # Baud rate | |
ser.timeout = 0.5 |