Skip to content

Instantly share code, notes, and snippets.

#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <linux/i2c-dev.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init5 = AT+CGDCONT=1,"IP","claro.com.br"
Modem Type = Analog Modem
ISDN = 0
New PPPD = yes
Phone = *99#
Modem = /dev/ttyUSB0
Username = claro
#!/usr/bin/python
import thread
import sys
import time
import Adafruit_BBIO.GPIO as GPIO
def gpio_test(pin):
while True:
#!/usr/bin/python
import thread
import sys
import time
import Adafruit_BBIO.GPIO as GPIO
def gpio_test(pin):
while True:
//
var b = require('bonescript');
// configure PWM pins as output
b.pinMode('P8_13', b.OUTPUT);
b.pinMode('P8_19', b.OUTPUT);
b.pinMode('P9_14', b.OUTPUT);
b.pinMode('P9_16', b.OUTPUT);
//Energia 0101E0012 (03/18/2014)
// http://energia.nu/download/
#include <Wire.h>
//printf
#include <stdarg.h>
void p(char *fmt, ... ){
char buf[128];
va_list args;
//Energia 0101E0012 (03/18/2014)
// http://energia.nu/download/
#include <Wire.h>
//printf
#include <stdarg.h>
void p(char *fmt, ... ){
char buf[128];
va_list args;
////////////////////////////////////////////////////////////////////////////////
// PIC16F876A Configuration Bit Settings
// 'C' source line config statements
#include <xc.h>
/////////////////////////////////////////////////////////////////////////////////
// PIC18F24J50 Configuration Bit Settings
// 'C' source line config statements
#include <xc.h>
////////////////////////////////////////////////////////////////////////////////
// PIC18F4480 Configuration Bit Settings
// 'C' source line config statements
#include <xc.h>
// #pragma config statements should precede project file includes.
// Use project enums instead of #define for ON and OFF.