Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

I2C examples in VB?


  • Please log in to reply
1 reply to this topic

#1 pugtech

pugtech

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationScotts Valley, CA

Posted 30 October 2011 - 07:52 PM

Does anyone have any I2C examples in VB they would be willing to share? I'm trying to use a DS2482 1-Wire Master.

Thanks...Scott

#2 seascan

seascan

    Advanced Member

  • Members
  • PipPipPip
  • 88 posts

Posted 22 December 2011 - 12:15 AM

Does anyone have any I2C examples in VB they would be willing to share? I'm trying to use a DS2482 1-Wire Master.

Thanks...Scott

Scott,

I can see that there is a class in the 4.2 SDK... but I don't see any examples of implementation.

Here is my extensive code :lol:
Imports System
Imports Microsoft.SPOT
Imports System.IO.Ports
Imports SecretLabs.NETMF.Hardware.NetduinoPlus
Imports System.Threading
Imports Microsoft.SPOT.Hardware
Imports SecretLabs.NETMF.Hardware

Public Class I2Temperature
    Dim MyOW As I2CDevice

    Public Sub New()
        Dim MyConfig As New I2CDevice.Configuration(&H91 >> 1, 100)
        MyOW = New I2CDevice(MyConfig)

    End Sub





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.