This file contains 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
// from https://github.com/DigiExam/simplewifi | |
using SimpleWifi; | |
// Wifi object | |
Wifi wifi = new Wifi(); | |
// get list of access points | |
IEnumerable<AccessPoint> accessPoints = wifi.GetAccessPoints(); | |
This file contains 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
// 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); |
This file contains 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
using Microsoft.Win32; | |
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.IO.Ports; | |
using System.Runtime.InteropServices; | |
namespace WindowsTapSpace |
This file contains 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
// 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 |
This file contains 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
uint32_t ulUser0, ulUser1; | |
ROM_FlashUserGet(&ulUser0, &ulUser1); | |
uint8_t* p_mac0; | |
uint8_t* p_mac1; | |
p_mac0 = (uint8_t*) &ulUser0; | |
p_mac1 = (uint8_t*) &ulUser1; | |
UARTprintf("mac=%02x-%02x-%02x-%02x-%02x-%02x\n",p_mac0[0],p_mac0[1],p_mac0[2],p_mac1[0],p_mac1[1],p_mac1[2]); |
This file contains 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
/* | |
Tiva C / Stellaris LM4F120XL | |
SCA ---> PA6 | |
SDA ---> PA7 | |
*/ | |
//I2C lib | |
#include <Wire.h> | |
//////////////////////////////////////////// |
This file contains 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
/* | |
Arduino Nano V3 | |
SDA ---> A4 | |
SCL ---> A5 | |
*/ | |
//I2C lib | |
#include <Wire.h> | |
//////////////////////////////////// |
This file contains 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
//i2c lib | |
#include <Wire.h> | |
TwoWire i2c_port(2); | |
#include <stdarg.h> | |
void debug(char *fmt, ... ){ | |
char buf[128]; // resulting string limited to 128 chars | |
va_list args; |
This file contains 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
#define HCSR04_TRIG PD_3 | |
#define HCSR04_ECHO PD_2 | |
void setup() | |
{ | |
Serial.begin(115200); | |
pinMode(HCSR04_TRIG,OUTPUT); | |
pinMode(HCSR04_ECHO,INPUT); | |
} |
This file contains 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
#include <SPI.h> | |
#include <AIR430BoostFCC.h> | |
// ----------------------------------------------------------------------------- | |
/** | |
* Defines, enumerations, and structure definitions | |
*/ | |
#define ADDRESS_LOCAL 0x01 |
OlderNewer