- Netduino Forums
- → logicalstep's Content
logicalstep's Content
There have been 21 items by logicalstep (Search limited from 24-April 23)
#39768 HT1632 interface (alpha)
Posted by logicalstep on 20 November 2012 - 10:35 PM in Netduino 2 (and Netduino 1)
#39766 HT1632 interface (alpha)
Posted by logicalstep on 20 November 2012 - 10:10 PM in Netduino 2 (and Netduino 1)
#39759 HT1632 interface (alpha)
Posted by logicalstep on 20 November 2012 - 08:35 PM in Netduino 2 (and Netduino 1)
Hi,
it should work fine, that's what I did, but I don't remember which version I used, I think I had to use a beta-version to get access to the variable SPI-functions.
/Hakan
I don't even seem to be able to get it into Debug. It looks like its deployed but then just sits there.
DO I need any Beta firmware as I though that 4.2 was the latest and assumed the SPI function would be in there, or I would at least be able to get it debugging...any more advise would be appreciated.
It also looks like there is alot of stuff going on there, do I need all the files that are in the project, or can I strip it down at all for debugging purposes.
Thanks in advance
Logicalstep
#39669 HT1632 interface (alpha)
Posted by logicalstep on 19 November 2012 - 10:44 PM in Netduino 2 (and Netduino 1)
#39601 SPI LED
Posted by logicalstep on 18 November 2012 - 11:34 PM in Netduino Plus 2 (and Netduino Plus 1)
After a busy few months and after receiving my new Netduino Plus 2, I'm re-visiting trying to get this LED to work.
I managed to get the SPI working, but I'm stuck on the example code you have given below. Any chance you could clarify it a little for me?
Using the code in your link, it's just rolling around lots of random patterns.
The part where you say 'The problem is that they (the Sure designers) chosen to save any remaining unused bit for the adjacent digit. There's no less parts, nor less cost: why they decided to get the implementor's life harder?'
I'm not that experienced with SPI or Serail data (apart from doing some RS232).
Thanks in advance.
Logicalstep
By keeping the bytes "aligned", the task *would have been* relatively easy:
//define the digits pattern static byte[] pattern = new byte[] { ... }; static void Main() { ... init ... Dump(1234); ... } private void Dump(int number) { //create a buffer to hold the four digits pattern byte[] buffer = new byte[4]; //fill the buffer reversely, because it's more comfortable for (int i = 3; i >= 0; i--) { int digit = number % 10; buffer[i] = pattern[digit]; number /= 10; } spi.Write(buffer); }
The problem is that they (the Sure designers) chosen to save any remaining unused bit for the adjacent digit. There's no less parts, nor less cost: why they decided to get the implementor's life harder?
Anyway, this time the routine gets more complex. I'd write something like this:
<br class="Apple-interchange-newline">private void Dump(int number) { byte[] buffer = new byte[4]; int temp = 0; for (int i = 0; i < 4; i++) { int digit = number % 10; temp = temp * 128 + pattern[digit]; number /= 10; } for (int i = 3; i >= 0; i--) { buffer[i] = (byte)temp; temp >>= 8; } spi.Write(buffer); }
Maybe could be simplified...any clue?
NOTE: both the above snippets are coming out my mind, and I didn't try them. They're just a trace for a concrete implementation.
Cheers
#38597 Something new is brewing in the Secret Labs
Posted by logicalstep on 06 November 2012 - 09:25 AM in General Discussion
#38547 Netduino Plus 1 Firmware v4.2.0 (update 1)
Posted by logicalstep on 05 November 2012 - 11:16 AM in Netduino Plus 2 (and Netduino Plus 1)
Thank you Chris, we are waiting for the 4.3 beta this month. We hope the internet glitch is than solved.
@Travor, you did not install (correct) the Netduino driver, please read all the steps to install at the begin.
Hi Ellen,
Thanks for the response, I have tried starting from scratch and installed both of the drivers one by one and I definitely have the correct firmware and Bootloader installed, so I'm a bit lost really.
Many thanks
Trevor
#38504 Netduino Plus 1 Firmware v4.2.0 (update 1)
Posted by logicalstep on 04 November 2012 - 06:33 PM in Netduino Plus 2 (and Netduino Plus 1)
#30697 SPI LED
Posted by logicalstep on 14 June 2012 - 07:06 PM in Netduino Plus 2 (and Netduino Plus 1)
#30610 SPI LED
Posted by logicalstep on 12 June 2012 - 10:37 PM in Netduino Plus 2 (and Netduino Plus 1)
I'm hoping someone can help, I sourced these great seven segment LED boards form China and am trying to get them working with the Netduino.
It appears to show in the manual they are driven with SPI. But I'm struggling even to find the correct connection for the wires.
I'm hoping someone is willing to help make sense of this display, as I think it could be useful to others as well.
Link to webpage:
http://www.sureelect...oods.php?id=135
Many thanks in advance.
Logicalstep
#23453 Serial Port Reader Erros
Posted by logicalstep on 29 January 2012 - 10:39 PM in Netduino Plus 2 (and Netduino Plus 1)
#23444 Serial Port Reader Erros
Posted by logicalstep on 29 January 2012 - 09:22 PM in Netduino Plus 2 (and Netduino Plus 1)
#23435 Serial Port Reader Erros
Posted by logicalstep on 29 January 2012 - 08:44 PM in Netduino Plus 2 (and Netduino Plus 1)
#23429 Serial Port Reader Erros
Posted by logicalstep on 29 January 2012 - 04:16 PM in Netduino Plus 2 (and Netduino Plus 1)
#23134 New here and have a question
Posted by logicalstep on 22 January 2012 - 01:04 PM in Visual Basic Support
#23131 New here and have a question
Posted by logicalstep on 22 January 2012 - 12:16 PM in Visual Basic Support
#23128 New here and have a question
Posted by logicalstep on 22 January 2012 - 11:26 AM in Visual Basic Support
Ha, well there you go, the exact example I was asking about!
Well, there is more knowledge available for C# at this time, and the latest stable firmware supports only C#, but VB is fun, and if nobody starts with it, no resources will ever spawn
I see what you are saying, but as in your sentence, people always say things like ' but VB is fun' and it's that kind of comment that leads me to believe VB is not considered to be a 'proper' programming language. Now don;t get me wrong I've done some things on windows that would have taken me ages to learn in C#, so in that respect VB is great.
But it seems to me that C# is still considered more of a programmers language and also when working in the .NET Micro, I have a feeling because it's again more similar to the Arduino C, that it will naturally see a lot more coverage in terms of people wanting to learn it.
I think I was also getting a little confused when reading about how it setup VB on the netduino. For some stupid reason I thought you had to choose one or the other. But it looks like you can just switch between them as you choose, as long as you have the correct SDK and Firmware. Is this the case?
Also I tried to update the Board with RC3 and the latest Tinybootloader, but I get deployment issues. I'm pretty sure I followed everything to the letter, but it just shows as 'Deploying' but never does. Sometimes it'll even get to ' Ready' but in the bottom right I still see the animated build logo churning away. Is this a known issue?
Thanks for your help so far guys.
Logicalstep
#22964 Mifare RFID Example Code With I2C LCD Output
Posted by logicalstep on 18 January 2012 - 09:58 PM in Visual Basic Support
#22844 New here and have a question
Posted by logicalstep on 16 January 2012 - 08:34 PM in Visual Basic Support
#22448 New here and have a question
Posted by logicalstep on 04 January 2012 - 07:36 PM in Visual Basic Support
#22358 New here and have a question
Posted by logicalstep on 02 January 2012 - 06:05 PM in Visual Basic Support
- Netduino Forums
- → logicalstep's Content
- Privacy Policy