Hello everyone
I wonder if I want to plug some Arduino Sheild with Netduino and the example code show only C code.
How can I start writing C# driver since I can not find any article for getting start with creating driver for Netduino.
Please could you give me some suggestion, resource, simple code or example to create simple driver for C#. Maybe example for https://www.sparkfun.com/products/255 driver.
Thank you.
How to get start creating C# driver for Netduino
Started by embarus, Jul 29 2012 07:30 AM
3 replies to this topic
#1
Posted 29 July 2012 - 07:30 AM
#2
Posted 29 July 2012 - 07:52 AM
A piece of hardware, like that LCD, has a datasheet explaining how it should be driven.
Most hardware uses protocols like I²C, SPI, UART, Onewire, etc.
A driver is just a class in C# that communicates with the right pins and the right protocol. I wrote a lot of drivers myself, open source. For the display; please check out http://netmftoolbox....ware.Hd44780Lcd
If you download the whole package, you can see how drivers can be written.
- elmafioso79 likes this
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#3
Posted 29 July 2012 - 08:11 AM
Hi Stefan.
Thank you very much for fast reply.
Your suggestion is very useful. I just only understand how to connect external device with protocol provided (I²C, SPI, UART, Onewire etc) and get device spec from data sheet.
#4
Posted 29 July 2012 - 04:43 PM
Hi embarous,
If you want to keep things as easy as possible, I'd humbly suggest to switch to a Serial Enabled 16.x LCD. You'll only need to write a driver that internally just deals with UART and the most important thing: avoid using lots of IO...
If you want to keep things as easy as possible, I'd humbly suggest to switch to a Serial Enabled 16.x LCD. You'll only need to write a driver that internally just deals with UART and the most important thing: avoid using lots of IO...
"Just by looking how time goes by through patient eyes, will make no sense. Go ahead and do it..."
"Ver como el tiempo pasa a través de tus pacientes ojos no tiene sentido. Ve y hazlo..."
"Ver como el tiempo pasa a través de tus pacientes ojos no tiene sentido. Ve y hazlo..."
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users