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.

HAMZA

Member Since 12 Aug 2012
Offline Last Active Dec 27 2012 04:23 PM
-----

Topics I've Started

WatchDog Timer & netduino Plus

09 December 2012 - 02:08 AM

Hi

how can i use the warchdog timer in netduino Plus (with firmware 4.2)

i tried

Watchdog.Enabled = true;


but it still always false !!!! <_<

any help will be welcome

Netduino Plus - I2C not working

27 November 2012 - 05:43 PM

Hi

i have Netduino Plus that i updated last week with the new firmware 4.2 because the I2C don't work in firmware 4.1, and i tried again but the same error again happen (see the attachement).

i use this code that i found here
http://www.tinyclr.c...m/topic?id=9074


using System;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.NetduinoPlus;

namespace i2C
{
public class Program
{
static OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);

public static void Main()
{

i2c();

while (true)
{
led.Write(true);
Thread.Sleep(10);
led.Write(false);
Thread.Sleep(1500);
}

//Thread.Sleep(Timeout.Infinite);
}


static void i2c()
{
// i2c configuration(address of my eeprom , clock speed)
I2CDevice myi2c = new I2CDevice(new I2CDevice.Configuration(0xA2, 400));

// to store the received value from eeprom
byte[] readBuffer = new byte[1];
byte[] address = new byte[] { 1 };

// Reading data stored in the selected address register
I2CDevice.I2CTransaction[] xActions = new I2CDevice.I2CTransaction[1];

xActions[0] = I2CDevice.CreateWriteTransaction(address);
myi2c.Execute(xActions, 1000);

xActions[0] = I2CDevice.CreateReadTransaction(readBuffer);
myi2c.Execute(xActions, 1000);


// print the received data
Debug.Print("address:" + address[0].ToString() + "data:" + readBuffer[0].ToString());

// go to the next address
address[0]++;

led.Write(true);
Thread.Sleep(1000);
led.Write(false);
}

}
}




there are any solution of this problem ?

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.