Skip to content

Instantly share code, notes, and snippets.

@murilopontes
murilopontes / GY-GPS6MV1.c
Created March 23, 2014 21:24
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
@murilopontes
murilopontes / WindowsTap.cs
Last active October 11, 2016 15:52
Windows TAP Interface
using Microsoft.Win32;
using System;
using System.Diagnostics;
using System.IO;
using System.IO.Ports;
using System.Runtime.InteropServices;
namespace WindowsTapSpace
@murilopontes
murilopontes / test_all_usarts.c
Last active March 1, 2017 00:03
Stellaris / Tiva C - Testing all USARTs using Energia IDE
// Stellaris / Tiva C - Testing all USARTs
void setup()
{
pinMode(40,1);
Serial.begin(115200);
Serial1.begin(115200);
Serial1.setPins(UART1_PORTB); //trick to active USART1 without overlap USART4
Serial2.begin(115200);
@murilopontes
murilopontes / wifi_connect.cs
Last active July 10, 2017 11:03
programmatically connect to WiFi access points
// from https://github.com/DigiExam/simplewifi
using SimpleWifi;
// Wifi object
Wifi wifi = new Wifi();
// get list of access points
IEnumerable<AccessPoint> accessPoints = wifi.GetAccessPoints();