Dops, I want anything but hurting you!...Your desperation is very common when you make experience: I share it!
Capita spesso anche a me! (=it happens often to me as well)
Please, could you try to use the very basic SPI way?
Here is the sample configuration:
http://wiki.netduino...figuration.ashx
To set the leds output, use this:
ushort x = 0x55AA; //bitwise array
xspi.Write(x);
I'll stay in touch.
Cheers
Ok this is the result:
WP_000148.jpg 103.76KB
23 downloads
WP_000150.jpg 106.62KB
22 downloads
Really i think problem is current voltage.. I don't know other explanations
If i use 3V pin, doesn't turn on even a single LED..
I begin to think that an electrical appliance is teasing me
This is used code:
private static SPI SPIBus;
public static void Main()
{
// Defines the first SPI slave device with pin 10 as SS
SPI.Configuration Device1 = new SPI.Configuration(
Pins.GPIO_PIN_D10, // SS-pin
false, // SS-pin active state
0, // The setup time for the SS port
0, // The hold time for the SS port
true, // The idle state of the clock
true, // The sampling clock edge (this must be "true" for the 74HC595)
1000, // The SPI clock rate in KHz
SPI_Devices.SPI1 // The used SPI bus (refers to a MOSI MISO and SCLK pinset)
);
// Initializes the SPI bus, with the first slave selected
SPIBus = new SPI(Device1);
DoWorkSlow();
}
private static void DoWorkSlow()
{
//set-up a one-byte buffer
byte[] buffer = new byte[1];
while (true)
{
for (int i = 0; i < 8; i++)
{
buffer[0] = (byte)i;
SPIBus.Write(buffer);
}
Thread.Sleep(500);
}
}