Sir
In the FEZ DOMINO, how long time the C# loose to write on and off a BIT in a ouput PIN ? nano seconds ?
namespace MFConsoleApplication1
{
public class Program
{
public static void Main()
{
OutputPort LED;
LED = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.LED, true);
while (true)
{
LED.Write(!LED.Read());
}
}
Miguel
Using code tags will make your post more readable. This can be done in two ways:[ol]
Click the “101010” icon and paste your code between the
tags or...
Select the code within your post and click the "101010" icon.[/ol]
(Generated by QuickReply)
This is not an easy answer. May be you can use the datetime class to count the number of ticks after millions of toggle. Profiling your code to monitor runtime in a so small case will create an overhead.