Skip to content

Instantly share code, notes, and snippets.

APTINEX aptinex

Block or report user

Report or block aptinex

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
from fcntl import ioctl
class AptinexDAC(object):
def __init__(self, address=0x62, bus=1):
self._addr = address
self._file = open('/dev/i2c-{0}'.format(bus), 'r+b', buffering=0)
def disconnect(self):
def set_voltage(self, value, persist=False):
if value > 4095:
value = 4095
View aptinex_dac_i2c_test_code_arduino.ino
#include <Wire.h>
#include "Aptinex_MCP4725.h"
Aptinex_MCP4725 dac;
void setup(void) {
Serial.println("***APTINEX MCP4725A DAC MODULE TEST CODE***");
// For Aptinex MCP4725A1 the address is 0x62 (default) or 0x63 (ADDR pin tied to VCC)
View sim900_gsm_sample_code
/*Note: this code is a demo for how to using gprs shield to send sms message, dial a voice call and
send a http request to the website, upload data to by TCP connection,
The microcontrollers Digital Pin 7 and hence allow unhindered
communication with GPRS Shield using SoftSerial Library.
IDE: Arduino 1.0 or later
Replace the following items in the code:
1.Phone number, don't forget add the country code
2.Replace the Access Point Name
3. Replace the Pachube API Key with your personal ones assigned
You can’t perform that action at this time.