h3mp - Viewing Profile: Posts - Netduino Forums
   
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.

h3mp

Member Since 23 Nov 2011
Offline Last Active Mar 08 2023 02:50 PM
-----

Posts I've Made

In Topic: Netduino runs faster when debugging

17 March 2015 - 07:57 AM

Or just select "Release" configuration. It will auto remove the Debug when building the app.

 

I'm pretty sure i did that and it did not help


In Topic: Netduino runs faster when debugging

02 March 2015 - 07:55 AM

OK, all fixed now thanks..

 

I just replaced all instances of Debug.Print with a function called "DebugPrint", then i have a global bool i can toggle to compile with the debug output turned off.. now running at full speed:

 

static bool inDebug = false;
 
        public static void DebugPrint(string output)
        {
            if (inDebug)            
                Debug.Print(output);
        }

In Topic: I2C not working on plus 2 (or regular 2)

01 March 2015 - 09:39 PM

I think the sensor has 10k pullups on it, I guess to move forwards i should look at it on a scope and logic analyser then post the results here.. was just hoping someone would magically know why it doesn't work on the new boards! :-)


In Topic: Netduino runs faster when debugging

01 March 2015 - 09:36 PM

so if i remove the debug output it should go back to full speed - i shall try this in the morning..


In Topic: I2C on original netduino not reading multiple bytes

22 February 2015 - 01:38 PM

Thanks IceMan..

 

I had missed that in the datasheet.. it states:

 

 

“The I2C embedded inside the LSM9DS0 behaves like a slave device and the following protocol must be adhered to. After the start condition (ST) a slave address is sent, once a slave acknowledge (SAK) has been returned, an 8-bit sub-address (SUB) will be transmitted: the 7 LSb represents the actual register address while the MSB enables the address auto increment. If the MSb of the SUB field is ‘1’, the SUB (register address) will be automatically increased to allow multiple data read/writes.”

 

so or'ing in the MSB 1 works great thanks  :D


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.