Skip to content

Instantly share code, notes, and snippets.

@murilopontes
Created March 23, 2014 21:24
Show Gist options
  • Save murilopontes/9730097 to your computer and use it in GitHub Desktop.
Save murilopontes/9730097 to your computer and use it in GitHub Desktop.
Stellaris / Tiva C - GY-GPS6MV1 - GPS Ublox NEO 6M
// Stellaris / Tiva C - GY-GPS6MV1 - GPS Ublox NEO 6M
// Use Energia IDE from http://energia.nu
//Wires
// GY-GPS6MV1 | Tiva
// VCC ---------- VBUS
// TX ---------- PB0
// RX ---------- PB1
// GND ---------- GND
void setup()
{
pinMode(BLUE_LED,OUTPUT);
Serial.begin(115200);
Serial1.setPins(UART1_PORTB); //trick to active USART1 without overlap USART4
Serial1.begin(9600);
}
void loop()
{
analogWrite(BLUE_LED,0);
while(Serial1.available()){
Serial.write(Serial1.read());
analogWrite(BLUE_LED,1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment